sounds.schedules¶
Classes¶
Base class for other classes to inherit shared session and state |
Module Contents¶
- class sounds.schedules.ScheduleService(session: aiohttp.ClientSession, logger: logging.Logger | None = None, timeout: aiohttp.ClientTimeout | None = None, mock_session: bool = False, **kwargs)¶
Bases:
sounds.base.BaseBase class for other classes to inherit shared session and state
- async current_programme(station_id: str) sounds.models.LiveProgramme | None¶
- async recently_played_items(station_id: str, image_size=450, results=10) list[sounds.models.Segment]¶
Gets the recent playing items on this station
- async currently_playing_song(station_id, image_size=450) sounds.models.Segment | None¶
Gets the currently playing song, if one is playing.