Kodi Community Forum

Full Version: [RELEASE] Norwegian NRK Web-TV (Video) Plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
Regarding the API changes.

There is an update. The 've installed it and the add-on now working again. Big Grin
Kudos to the developer(s)!

I'm on latest stable Libreelec running on Raspberry Pi3.
I have two improvement suggestions:
  1. The current listing of documentaries lists them all, from A to Å (Kategorier => Dokumentar), old and new alike.
    The following URL have categories like "Nye dokumentarer", "Klimakrisen", "Sanne krimgåter" etc, which is much better in my opinion:
    https://psapi.nrk.no/tv/pages/dokumentar

  2. Some content have more than one available subtitle, like "Matsjokket" episode 1. For some reason I get the english one for this episode. I have not tried other episodes.
    The plugin should handle cases where there are several subtitles to choose from, either through own settings or by checking Kodi's settings about preffered language.
I use NRK TV on different platforms. All but Kodi give the possibility to log in and by that keep track of series etc. I would like to see this option in Kodi as well.
Is it just me, or is the NRK plugin no longer working?
I am on Kodi 18.9, and whenever I try to play a video nothing happens. This is probably due to API changes from NRK.

Noone seems to mention this at https://github.com/tamland/xbmc-addon-nrk/issues
Video stream seems to be available from the following endpoint:
https://psapi.nrk.no/mediaelement/[program-id>], for example https://psapi.nrk.no/mediaelement/MUHU04000120

NB1: Seems like the following headers are important:
python:
session.headers['Referer'] = 'https://tv.nrk.no'
session.headers['Accept'] = "application/vnd.nrk.psapi+json; version=9; ludo-client=true; psapi=snapshot"
Otherwise you will get a 410 returned with the text "There are no content here".

NB2: The response from the mediaelement-url also includes urls for subtitles, where:
  • "nor" is norwegian subtitle where only foreign language is texted.
  • "ttv" is norwegian subtitle where all language is texted.
You could try https://forum.kodi.tv/showthread.php?tid=25522, im not in Norway so i cant check it.
i have made a branch (v 4.8.0) which works under Kodi 20.0 Nexus
tested on Android and Linux
https://github.com/andrea99boban/xbmc-addon-nrk
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47