Streamer Schedule Helper

class AzuracastPy.models.streamer.ScheduleHelper(_streamer)

Provides functions for working with the schedule of a streamer.

__init__(_streamer)

Initializes a ScheduleHelper instance.

Note

This class should not be initialized directly. Instead, obtain an instance via: streamer.schedule.

add(*args: Dict[str, Any])

Adds one or more new schedule items to the streamer of the station.

Parameters:

args – The new schedule item(s) to be added to the station.

Usage:

item = station.streamer.generate_schedule_item(
    start_time="12:32",
    end_time="23:10",
    start_date="2024-09-08",
    end_date="2025-07-08",
    days=["monday", "thursday"]
)

streamer.schedule.add(item)
remove(id: int)

Removes a schedule item from the streamer’s current schedule.

Parameters:

id – The ID of the schedule item to be removed.

Usage:

streamer.schedule.remove(1)