Podcast Category Helper

class AzuracastPy.models.podcast.PodcastCategoryHelper(_podcast)

Provides functions for working with the categories of a podcast.

__init__(_podcast)

Initializes a PodcastCategoryHelper instance.

Note

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

add(*args: PodcastCategories)

Adds one or more categories to the podcast.

Parameters:

args – The category|categories to be added to the podcast. All arguments must be from the PodcastCategories enum.

Usage:

from AzuracastPy.enums import PodcastCategories

podcast.category.add(PodcastCategories.GOVERNMENT)

podcast.category.add(
    PodcastCategories.Arts.BOOKS,
    PodcastCategories.HISTORY
)
remove(*args: PodcastCategories)

Removes one or more categories from the podcast.

Parameters:

args – The category|categories to be removed from the podcast. All arguments must be from the PodcastCategories enum.

Usage:

from AzuracastPy.enums import PodcastCategories

podcast.category.remove(PodcastCategories.GOVERNMENT)

podcast.category.remove(
    PodcastCategories.Arts.BOOKS,
    PodcastCategories.HISTORY
)