Metadata#
Models#
- class nrk_psapi.models.metadata.Interaction[source]#
Bases:
BaseDataClassORJSONMixinInteraction(type: ‘InteractionPoint’, start_time: ‘float’, end_time: ‘float’)
-
type:
InteractionPoint#
-
type:
- class nrk_psapi.models.metadata.LegalAgeRating[source]#
Bases:
BaseDataClassORJSONMixinRepresents the rating information for legal age.
- class nrk_psapi.models.metadata.LegalAgeBody[source]#
Bases:
BaseDataClassORJSONMixinRepresents the body of legal age information.
-
rating:
LegalAgeRating|None= None#
-
rating:
- class nrk_psapi.models.metadata.LegalAge[source]#
Bases:
BaseDataClassORJSONMixinRepresents the legal age information.
-
body:
LegalAgeBody#
-
body:
- class nrk_psapi.models.metadata.OnDemand[source]#
Bases:
BaseDataClassORJSONMixinRepresents the on demand information.
- class nrk_psapi.models.metadata.Poster[source]#
Bases:
BaseDataClassORJSONMixinRepresents a poster with multiple image sizes.
- class nrk_psapi.models.metadata.SkipDialogInfo[source]#
Bases:
BaseDataClassORJSONMixinSkipDialogInfo(start_intro_in_seconds: ‘int’, end_intro_in_seconds: ‘int’, start_credits_in_seconds: ‘int’, start_intro: ‘timedelta’, end_intro: ‘timedelta’, start_credits: ‘timedelta’)
- class nrk_psapi.models.metadata.Preplay[source]#
Bases:
BaseDataClassORJSONMixinRepresents the preplay information.
-
index_points:
list[IndexPoint]#
-
index_points:
- class nrk_psapi.models.metadata.Manifest[source]#
Bases:
BaseDataClassORJSONMixinRepresents a manifest in the _embedded section.
- class nrk_psapi.models.metadata.PodcastMetadataEmbedded[source]#
Bases:
BaseDataClassORJSONMixinRepresents the podcast information in the _embedded section.
- class nrk_psapi.models.metadata.PodcastEpisodeMetadata[source]#
Bases:
BaseDataClassORJSONMixinRepresents the podcast episode information in the _embedded section.
- class nrk_psapi.models.metadata.PodcastMetadata[source]#
Bases:
BaseDataClassORJSONMixinRepresents the main structure of the API response for podcast metadata.
-
playability:
Playability#
-
availability:
AvailabilityDetailed#
-
source_medium:
PlayableSourceMedium#
-
non_playable:
NonPlayable|None= None#
-
interaction_points:
list[InteractionPoint] |None#
-
skip_dialog_info:
SkipDialogInfo|None= None#
-
interaction:
list[Interaction] |None#
-
podcast:
PodcastMetadataEmbedded|None= None#
-
podcast_episode:
PodcastEpisodeMetadata|None= None#
-
playability:
Enums#
- enum nrk_psapi.models.metadata.InteractionPoint(value)[source]#
Bases:
StrEnum- Member Type:
Valid values are as follows:
- SEEK_TO_POINTS = <InteractionPoint.SEEK_TO_POINTS: 'seekToPoints'>#
- NEXT_UP_POINT = <InteractionPoint.NEXT_UP_POINT: 'nextUpPoint'>#
- RECOMMEND_NEXT_POINT = <InteractionPoint.RECOMMEND_NEXT_POINT: 'recommendNextPoint'>#