Song History

class AzuracastPy.models.song_history.SongHistory(sh_id: int, played_at: int, duration: int, playlist: str, streamer: str, is_request: bool, song: Song, listeners_start: int | None = None, listeners_end: int | None = None, delta_total: int | None = None, is_visible: bool | None = None)

Represents a single item from the song history of a station.

__init__(sh_id: int, played_at: int, duration: int, playlist: str, streamer: str, is_request: bool, song: Song, listeners_start: int | None = None, listeners_end: int | None = None, delta_total: int | None = None, is_visible: bool | None = None)

Initializes a SongHistory object.

Note

This class should not be initialized directly. Instead, obtain an instance via: history()