Admin Station

class AzuracastPy.models.administration.AdminStation(name: str, short_name: str, is_enabled: bool, frontend_type: str, frontend_config: FrontendConfig, backend_type: str, backend_config: BackendConfig, description: str, url: str, genre: str, radio_base_dir: str, enable_requests: bool, request_delay: int, request_threshold: int, disconnect_deactivate_streamer: int, enable_streamers: bool, is_streamer_live: bool, enable_public_page: bool, enable_on_demand: bool, enable_on_demand_download: bool, enable_hls: bool, api_history_items: int, timezone: str, branding_config, media_storage_location: int, recordings_storage_location: int, podcasts_storage_location: int, fallback_path, id: int, links: Links, _admin)

Represents a radio station, with extra information.

__init__(name: str, short_name: str, is_enabled: bool, frontend_type: str, frontend_config: FrontendConfig, backend_type: str, backend_config: BackendConfig, description: str, url: str, genre: str, radio_base_dir: str, enable_requests: bool, request_delay: int, request_threshold: int, disconnect_deactivate_streamer: int, enable_streamers: bool, is_streamer_live: bool, enable_public_page: bool, enable_on_demand: bool, enable_on_demand_download: bool, enable_hls: bool, api_history_items: int, timezone: str, branding_config, media_storage_location: int, recordings_storage_location: int, podcasts_storage_location: int, fallback_path, id: int, links: Links, _admin)

Initializes an AdminStation object.

Note

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

delete()

Deletes the station from the radio.

Sets all attributes of the current AdminStation object to None.

Usage:

admin_station.delete()
manage()

Generates an instance of the current station, devoid of admin priviledges.

Returns:

A Station object.

Usage:

station = admin_station.manage()