Catalog#
Models#
- class nrk_psapi.models.catalog.Date[source]#
Bases:
BaseDataClassORJSONMixinRepresents a date with its value and display format.
- class nrk_psapi.models.catalog.GeoBlock[source]#
Bases:
BaseDataClassORJSONMixinRepresents geographical blocking information.
- class nrk_psapi.models.catalog.UsageRights[source]#
Bases:
BaseDataClassORJSONMixinContains information about usage rights and availability.
- class nrk_psapi.models.catalog.Availability[source]#
Bases:
BaseDataClassORJSONMixinRepresents the Availability of a Program based on the active usage rights.
-
status:
AvailabilityStatus#
-
status:
- class nrk_psapi.models.catalog.Category[source]#
Bases:
BaseDataClassORJSONMixinRepresents a category with its ID and name.
- class nrk_psapi.models.catalog.Titles[source]#
Bases:
BaseDataClassORJSONMixinContains title information.
- class nrk_psapi.models.catalog.DefaultTitles[source]#
Bases:
BaseDataClassORJSONMixinContains default title information.
- class nrk_psapi.models.catalog.TemporalTitles[source]#
Bases:
BaseDataClassORJSONMixinContains temporal title information.
-
default_titles:
DefaultTitles#
-
default_titles:
- class nrk_psapi.models.catalog.EpisodeContext[source]#
Bases:
BaseDataClassORJSONMixinContains episode context information.
-
type:
PodcastType#
-
type:
- class nrk_psapi.models.catalog.Episode[source]#
Bases:
BaseDataClassORJSONMixinRepresents a podcast episode.
-
type:
EpisodeType# The type of the episode.
-
usage_rights:
UsageRights# The usage rights of the episode.
-
availability:
Availability# The availability of the episode.
-
program_information:
ProgramInformation|None= None# The program information of the episode.
-
index_points:
list[IndexPoint] |None= None# The index points of the episode.
-
contributors:
list[Contributor] |None= None# The contributors of the episode.
-
type:
- class nrk_psapi.models.catalog.SeasonBase[source]#
Bases:
BaseDataClassORJSONMixinBase class for a podcast season.
- class nrk_psapi.models.catalog.SeasonEmbedded[source]#
Bases:
SeasonBaseRepresents an embedded podcast season.
- class nrk_psapi.models.catalog.Season[source]#
Bases:
SeasonBaseRepresents a podcast season.
-
series_type:
SeriesType#
-
type:
PodcastType#
-
series_type:
- class nrk_psapi.models.catalog.EpisodesResponse[source]#
Bases:
BaseDataClassORJSONMixinContains a list of embedded episodes.
-
series_type:
SeriesType|None= None#
-
series_type:
- class nrk_psapi.models.catalog.PodcastSeries[source]#
Bases:
BaseDataClassORJSONMixinRepresents a podcast series.
- class nrk_psapi.models.catalog.Podcast[source]#
Bases:
BaseDataClassORJSONMixinRepresents the main structure of the API response.
-
type:
PodcastType#
-
series_type:
SeriesType#
-
season_display_type:
SeasonDisplayType#
-
series:
PodcastSeries#
-
type:
- class nrk_psapi.models.catalog.PodcastStandard[source]#
Bases:
PodcastRepresents a standard podcast.
- seriesType = 'standard'#
-
seasons:
list[SeasonLink]#
-
type:
PodcastType#
-
series_type:
SeriesType#
-
season_display_type:
SeasonDisplayType#
-
series:
PodcastSeries#
- class nrk_psapi.models.catalog.PodcastUmbrella[source]#
Bases:
PodcastRepresents an umbrella podcast.
- seriesType = 'umbrella'#
-
seasons:
list[SeasonEmbedded]#
-
type:
PodcastType#
-
series_type:
SeriesType#
-
season_display_type:
SeasonDisplayType#
-
series:
PodcastSeries#
- class nrk_psapi.models.catalog.PodcastSequential[source]#
Bases:
PodcastRepresents a sequential podcast.
- seriesType = 'sequential'#
-
seasons:
list[SeasonEmbedded]#
-
type:
PodcastType#
-
series_type:
SeriesType#
-
season_display_type:
SeasonDisplayType#
-
series:
PodcastSeries#
- class nrk_psapi.models.catalog.SeasonLink[source]#
Bases:
BaseDataClassORJSONMixinRepresents a season link in the API response.
- class nrk_psapi.models.catalog.Link[source]#
Bases:
BaseDataClassORJSONMixinRepresents a hyperlink in the API response.
- class nrk_psapi.models.catalog.Links[source]#
Bases:
BaseDataClassORJSONMixinContains all the hyperlinks in the API response.
- class nrk_psapi.models.catalog.ProgramInformationDetails[source]#
Bases:
BaseDataClassORJSONMixinContains program information details.
- class nrk_psapi.models.catalog.ProgramInformation[source]#
Bases:
BaseDataClassORJSONMixinContains program information.
-
details:
ProgramInformationDetails#
-
details:
- class nrk_psapi.models.catalog.Contributor[source]#
Bases:
BaseDataClassORJSONMixinRepresents a contributor to the episode.
- class nrk_psapi.models.catalog.WebImage[source]#
Bases:
BaseDataClassORJSONMixinWrapper around Image.
- class nrk_psapi.models.catalog.Image[source]#
Bases:
BaseDataClassORJSONMixinRepresents an image with its URL and width.
- class nrk_psapi.models.catalog.Duration[source]#
Bases:
BaseDataClassORJSONMixinRepresents the duration of the episode in various formats.
- class nrk_psapi.models.catalog.IndexPoint[source]#
Bases:
BaseDataClassORJSONMixinRepresents a point of interest within the episode.
-
contributors:
list[Contributor] |None= None#
-
contributors:
- class nrk_psapi.models.catalog.PlaylistItem[source]#
Bases:
BaseDataClassORJSONMixinRepresents a playlist item in the playlist.
- class nrk_psapi.models.catalog.PlaylistMusicItem[source]#
Bases:
PlaylistItemRepresents a music playlist item in the playlist.
- class nrk_psapi.models.catalog.Series[source]#
Bases:
BaseDataClassORJSONMixinRepresents a series object.
-
type:
PodcastType# The type of the series.
-
type:
- class nrk_psapi.models.catalog.Program[source]#
Bases:
BaseDataClassORJSONMixinRepresents a program object.
-
program_information:
ProgramInformation#
-
contributors:
list[Contributor]#
-
temporal_titles:
TemporalTitles#
-
availability:
Availability#
-
usage_rights:
UsageRights#
-
index_points:
list[IndexPoint]#
-
playlist:
list[PlaylistItem]#
-
program_information:
Enums#
- enum nrk_psapi.models.catalog.AvailabilityStatus(value)[source]#
Bases:
StrEnum- Member Type:
Valid values are as follows:
- COMING = <AvailabilityStatus.COMING: 'coming'>#
- AVAILABLE = <AvailabilityStatus.AVAILABLE: 'available'>#
- EXPIRES = <AvailabilityStatus.EXPIRES: 'expires'>#
- EXPIRED = <AvailabilityStatus.EXPIRED: 'expired'>#
- NOT_AVAILABLE_ONLINE = <AvailabilityStatus.NOT_AVAILABLE_ONLINE: 'notAvailableOnline'>#
- enum nrk_psapi.models.catalog.EpisodeType(value)[source]#
Bases:
StrEnum- Member Type:
Valid values are as follows:
- PODCAST_EPISODE = <EpisodeType.PODCAST_EPISODE: 'podcast_episode'>#
- PROGRAM = <EpisodeType.PROGRAM: 'program'>#
- enum nrk_psapi.models.catalog.PodcastType(value)[source]#
Bases:
StrEnum- Member Type:
Valid values are as follows:
- PODCAST = <PodcastType.PODCAST: 'podcast'>#
- CUSTOM_SEASON = <PodcastType.CUSTOM_SEASON: 'customSeason'>#
- SERIES = <PodcastType.SERIES: 'series'>#