Station Podcast Helper
- class AzuracastPy.models.helpers.PodcastHelper(_station)
Provides a set of functions to interact with podcasts.
- __call__(id: str) Podcast
Retrieves a specific podcast from the station.
- Parameters:
id – The string ID of the podcast to be retrieved.
- Returns:
A
Podcastobject.
Usage:
podcast = station.podcast("string-id")
- __init__(_station)
Initializes a
PodcastHelperinstance.Note
This class should not be initialized directly. Instead, obtain an instance via:
podcast.
- create(title: str, description: str, language: Languages, categories: List[PodcastCategories] | None = None, author: str | None = None, email: str | None = None, website: str | None = None) Podcast
Adds a podcast to the station.
- Parameters:
title – The title of the podcast.
description – The description of the podcast.
language – The language spoken in the podcast. Use the
Languagesenum to select the language.categories – (Optional) A list of the categories that the podcast falls under. Each element of the list must be from the
PodcastCategoriesclass. Default:None.author – (Optional) The name of the author of the podcast. Default:
None.email – (Optional) The email of the author of the podcast. Default:
None.website – (Optional) The link to the website that hosts the podcast. Default:
None.
- Returns:
A
Podcastobject for the newly created podcast.
Usage:
from AzuracastPy.enums import Languages, PodcastCategories podcast = station.podcast.create( title="New podcast", description="This is a random description", language=Languages.ARABIC, categories=[ PodcastCategories.Arts.DESIGN, PodcastCategories.Comedy.COMEDY_INTERVIEWS ] )