Station File Playlist Helper

class AzuracastPy.models.station_file.PlaylistHelper(_file)

Provides functions for working with the playlists of a file.

__init__(_file)

Initializes a PlaylistHelper instance.

Note

This class should not be initialized directly. Instead, obtain an instance via: file.playlist.

add(*args: str)

Adds the file to one or more playlists.

Parameters:

args – The name(s) of the playlist(s) that the file will be added to. All arguments must be strings.

Usage:

file.playlist.add("playlist")

file.playlist.add("playlist1", "playlist2")
remove(*args: str)

Removes the file from one or more playlists.

Parameters:

args – The name(s) of the playlist(s) that the file will be removed from. All arguments must be strings.

Usage:

file.playlist.remove("playlist")

file.playlist.remove("playlist1", "playlist2")