Recommendations

Contents

Recommendations#

enum nrk_psapi.models.recommendations.RecommendationType(value)[source]#

Bases: str, Enum

Member Type:

str

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: StrEnum

Give different recommendations based on which context (front page, series page, etc.) the user is in.

Member Type:

str

Valid values are as follows:

DEFAULT = <RecommendationContext.DEFAULT: 'radio_viderenavigasjon_fra_program'>#
class nrk_psapi.models.recommendations.UpstreamSystemInfoPayload[source]#

Bases: BaseDataClassORJSONMixin

UpstreamSystemInfoPayload(id: ‘str’, name: ‘str’, brand: ‘str’, list_id: ‘str’, position: ‘int’, variant: ‘str’)

id: str#
name: str#
brand: str#
list_id: str#
position: int#
variant: str#
class nrk_psapi.models.recommendations.SnowplowSection[source]#

Bases: BaseDataClassORJSONMixin

SnowplowSection(id: ‘str’)

id: str#
class nrk_psapi.models.recommendations.SnowplowContent[source]#

Bases: BaseDataClassORJSONMixin

SnowplowContent(id: ‘str’, kind: ‘str’, source: ‘str’)

id: str#
kind: str#
source: str#
class nrk_psapi.models.recommendations.Snowplow[source]#

Bases: BaseDataClassORJSONMixin

Snowplow(title: ‘str’, section_index: ‘int’, image_id: ‘str’, recommendation_id: ‘str’, section: ‘SnowplowSection’, content: ‘SnowplowContent’)

title: str#
section_index: int#
image_id: str#
recommendation_id: str#
section: SnowplowSection#
content: SnowplowContent#
class nrk_psapi.models.recommendations.UpstreamSystemInfo[source]#

Bases: BaseDataClassORJSONMixin

UpstreamSystemInfo(upstream_system: ‘str’, payload: ‘UpstreamSystemInfoPayload’)

upstream_system: str#
payload: UpstreamSystemInfoPayload#
class nrk_psapi.models.recommendations.RecommendedPodcast[source]#

Bases: BaseDataClassORJSONMixin

RecommendedPodcast(id: ‘str’, titles: ‘Titles’, image: ‘WebImage’, number_of_episodes: ‘int’, square_image: ‘WebImage’)

id: str#
titles: Titles#
image: WebImage#
number_of_episodes: int#
square_image: WebImage#
class nrk_psapi.models.recommendations.RecommendedPodcastSeason[source]#

Bases: BaseDataClassORJSONMixin

RecommendedPodcastSeason(id: ‘str’, podcast_id: ‘str’, titles: ‘Titles’, image: ‘WebImage’, season_number: ‘int’)

id: str#
podcast_id: str#
titles: Titles#
image: WebImage#
season_number: int#
class nrk_psapi.models.recommendations.RecommendedSeries[source]#

Bases: BaseDataClassORJSONMixin

RecommendedSeries(id: ‘str’, titles: ‘Titles’, image: ‘WebImage’, number_of_episodes: ‘int’, square_image: ‘WebImage | None’ = None)

id: str#
titles: Titles#
image: WebImage#
number_of_episodes: int#
square_image: WebImage | None = None#
class nrk_psapi.models.recommendations.RecommendedProgram[source]#

Bases: BaseDataClassORJSONMixin

RecommendedProgram(id: ‘str’, titles: ‘Titles’, image: ‘WebImage’, duration: ‘timedelta’, square_image: ‘WebImage | None’ = None)

id: str#
titles: Titles#
image: WebImage#
duration: timedelta#
square_image: WebImage | None = None#
class nrk_psapi.models.recommendations.EmbeddedRecommendation[source]#

Bases: BaseDataClassORJSONMixin

EmbeddedRecommendation(_links: ‘Links’, type: ‘RecommendationType’, upstream_system_info: ‘UpstreamSystemInfo’)

type: RecommendationType#
upstream_system_info: UpstreamSystemInfo#
class nrk_psapi.models.recommendations.EmbeddedPodcastRecommendation[source]#

Bases: EmbeddedRecommendation

EmbeddedPodcastRecommendation(_links: ‘Links’, type: ‘RecommendationType’, upstream_system_info: ‘UpstreamSystemInfo’, podcast: ‘RecommendedPodcast’)

type: RecommendationType = 'podcast'#
podcast: RecommendedPodcast#
upstream_system_info: UpstreamSystemInfo#
class nrk_psapi.models.recommendations.EmbeddedPodcastSeasonRecommendation[source]#

Bases: EmbeddedRecommendation

EmbeddedPodcastSeasonRecommendation(_links: ‘Links’, type: ‘RecommendationType’, upstream_system_info: ‘UpstreamSystemInfo’, podcast_season: ‘RecommendedPodcastSeason’)

type: RecommendationType = 'podcastSeason'#
podcast_season: RecommendedPodcastSeason#
upstream_system_info: UpstreamSystemInfo#
class nrk_psapi.models.recommendations.EmbeddedSeriesRecommendation[source]#

Bases: EmbeddedRecommendation

EmbeddedSeriesRecommendation(_links: ‘Links’, type: ‘RecommendationType’, upstream_system_info: ‘UpstreamSystemInfo’, series: ‘RecommendedSeries’)

type: RecommendationType = 'series'#
series: RecommendedSeries#
upstream_system_info: UpstreamSystemInfo#
class nrk_psapi.models.recommendations.EmbeddedProgramRecommendation[source]#

Bases: EmbeddedRecommendation

EmbeddedProgramRecommendation(_links: ‘Links’, type: ‘RecommendationType’, upstream_system_info: ‘UpstreamSystemInfo’, program: ‘RecommendedProgram’)

type: RecommendationType = 'program'#
program: RecommendedProgram#
upstream_system_info: UpstreamSystemInfo#
class nrk_psapi.models.recommendations.Recommendation[source]#

Bases: BaseDataClassORJSONMixin

Recommendation(_links: ‘Links’, recommendations: ‘list[EmbeddedRecommendation]’ = <factory>)

recommendations: list[EmbeddedRecommendation]#