Podcast Episode

class AzuracastPy.models.PodcastEpisode(id: str, title: str, description: str, explicit: bool, publish_at: int, has_media: bool, media: Media, has_custom_art: bool, art: str, art_updated_at: int, links: Links, _podcast)

Represents an episode of a podcast.

__init__(id: str, title: str, description: str, explicit: bool, publish_at: int, has_media: bool, media: Media, has_custom_art: bool, art: str, art_updated_at: int, links: Links, _podcast)

Initializes a PodcastEpisode object.

Note

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

delete()

Deletes the episode from the podcast.

Sets all attributes of the current PodcastEpisode object to None.

Usage:

podcast_episode.delete()
edit(title: str | None = None, description: str | None = None, explicit: bool | None = None)

Edits the podcast episode’s properties.

Updates all edited attributes of the current PodcastEpisode object.

Parameters:
  • title – (Optional) The new title of the episode. Default: None.

  • description – (Optional) The new description of the episode. Default: None.

  • explicit – (Optional) The new explicit status of the episode. Default: None.

Usage:

podcast_episode.edit(
    title="New episode title",
    description="New episode description",
    explicit=True
)