Recommendations#
- enum nrk_psapi.models.recommendations.RecommendationType(value)[source]#
-
- Member Type:
Valid values are as follows:
- PODCAST = <RecommendationType.PODCAST: 'podcast'>#
- PODCAST_SEASON = <RecommendationType.PODCAST_SEASON: 'podcastSeason'>#
- PROGRAM = <RecommendationType.PROGRAM: 'program'>#
- SERIES = <RecommendationType.SERIES: 'series'>#
- enum nrk_psapi.models.recommendations.RecommendationContext(value)[source]#
Bases:
StrEnumGive different recommendations based on which context (front page, series page, etc.) the user is in.
- Member Type:
Valid values are as follows:
- DEFAULT = <RecommendationContext.DEFAULT: 'radio_viderenavigasjon_fra_program'>#
- class nrk_psapi.models.recommendations.UpstreamSystemInfoPayload[source]#
Bases:
BaseDataClassORJSONMixinUpstreamSystemInfoPayload(id: ‘str’, name: ‘str’, brand: ‘str’, list_id: ‘str’, position: ‘int’, variant: ‘str’)
- class nrk_psapi.models.recommendations.SnowplowSection[source]#
Bases:
BaseDataClassORJSONMixinSnowplowSection(id: ‘str’)
- class nrk_psapi.models.recommendations.SnowplowContent[source]#
Bases:
BaseDataClassORJSONMixinSnowplowContent(id: ‘str’, kind: ‘str’, source: ‘str’)
- class nrk_psapi.models.recommendations.Snowplow[source]#
Bases:
BaseDataClassORJSONMixinSnowplow(title: ‘str’, section_index: ‘int’, image_id: ‘str’, recommendation_id: ‘str’, section: ‘SnowplowSection’, content: ‘SnowplowContent’)
-
section:
SnowplowSection#
-
content:
SnowplowContent#
-
section:
- class nrk_psapi.models.recommendations.UpstreamSystemInfo[source]#
Bases:
BaseDataClassORJSONMixinUpstreamSystemInfo(upstream_system: ‘str’, payload: ‘UpstreamSystemInfoPayload’)
-
payload:
UpstreamSystemInfoPayload#
-
payload:
- class nrk_psapi.models.recommendations.RecommendedPodcast[source]#
Bases:
BaseDataClassORJSONMixinRecommendedPodcast(id: ‘str’, titles: ‘Titles’, image: ‘WebImage’, number_of_episodes: ‘int’, square_image: ‘WebImage’)
- class nrk_psapi.models.recommendations.RecommendedPodcastSeason[source]#
Bases:
BaseDataClassORJSONMixinRecommendedPodcastSeason(id: ‘str’, podcast_id: ‘str’, titles: ‘Titles’, image: ‘WebImage’, season_number: ‘int’)
- class nrk_psapi.models.recommendations.RecommendedSeries[source]#
Bases:
BaseDataClassORJSONMixinRecommendedSeries(id: ‘str’, titles: ‘Titles’, image: ‘WebImage’, number_of_episodes: ‘int’, square_image: ‘WebImage | None’ = None)
- class nrk_psapi.models.recommendations.RecommendedProgram[source]#
Bases:
BaseDataClassORJSONMixinRecommendedProgram(id: ‘str’, titles: ‘Titles’, image: ‘WebImage’, duration: ‘timedelta’, square_image: ‘WebImage | None’ = None)
- class nrk_psapi.models.recommendations.EmbeddedRecommendation[source]#
Bases:
BaseDataClassORJSONMixinEmbeddedRecommendation(_links: ‘Links’, type: ‘RecommendationType’, upstream_system_info: ‘UpstreamSystemInfo’)
-
type:
RecommendationType#
-
upstream_system_info:
UpstreamSystemInfo#
-
type:
- class nrk_psapi.models.recommendations.EmbeddedPodcastRecommendation[source]#
Bases:
EmbeddedRecommendationEmbeddedPodcastRecommendation(_links: ‘Links’, type: ‘RecommendationType’, upstream_system_info: ‘UpstreamSystemInfo’, podcast: ‘RecommendedPodcast’)
-
type:
RecommendationType= 'podcast'#
-
podcast:
RecommendedPodcast#
-
upstream_system_info:
UpstreamSystemInfo#
-
type:
- class nrk_psapi.models.recommendations.EmbeddedPodcastSeasonRecommendation[source]#
Bases:
EmbeddedRecommendationEmbeddedPodcastSeasonRecommendation(_links: ‘Links’, type: ‘RecommendationType’, upstream_system_info: ‘UpstreamSystemInfo’, podcast_season: ‘RecommendedPodcastSeason’)
-
type:
RecommendationType= 'podcastSeason'#
-
podcast_season:
RecommendedPodcastSeason#
-
upstream_system_info:
UpstreamSystemInfo#
-
type:
- class nrk_psapi.models.recommendations.EmbeddedSeriesRecommendation[source]#
Bases:
EmbeddedRecommendationEmbeddedSeriesRecommendation(_links: ‘Links’, type: ‘RecommendationType’, upstream_system_info: ‘UpstreamSystemInfo’, series: ‘RecommendedSeries’)
-
type:
RecommendationType= 'series'#
-
series:
RecommendedSeries#
-
upstream_system_info:
UpstreamSystemInfo#
-
type:
- class nrk_psapi.models.recommendations.EmbeddedProgramRecommendation[source]#
Bases:
EmbeddedRecommendationEmbeddedProgramRecommendation(_links: ‘Links’, type: ‘RecommendationType’, upstream_system_info: ‘UpstreamSystemInfo’, program: ‘RecommendedProgram’)
-
type:
RecommendationType= 'program'#
-
program:
RecommendedProgram#
-
upstream_system_info:
UpstreamSystemInfo#
-
type:
- class nrk_psapi.models.recommendations.Recommendation[source]#
Bases:
BaseDataClassORJSONMixinRecommendation(_links: ‘Links’, recommendations: ‘list[EmbeddedRecommendation]’ = <factory>)
-
recommendations:
list[EmbeddedRecommendation]#
-
recommendations: