Station Queue Helper

class AzuracastPy.models.helpers.QueueHelper(_station)

Provides a set of functions to interact with remote relays.

__call__(id: int | None = None) List[QueueItem] | QueueItem

Retrieves a specific remote relay from the station.

Parameters:

id – (Optional) The numerical ID of the queue item to be retrieved. If None, all items in the queue are retrieved. Default: None.

Returns:

A list of QueueItem objects or a single QueueItem object.

Usage:

queue = station.queue()
queue_item = station.queue(1)
__init__(_station)

Initializes a QueueHelper instance.

Note

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