Kodi Community Forum
[RELEASE] Norwegian NRK Web-TV (Video) Plugin - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] Norwegian NRK Web-TV (Video) Plugin (/showthread.php?tid=52824)



Thx Victor - PanterA - 2009-12-13

Your the man! Your NRK add works perfect for my use now. Txh for the additional code.

I see forward to what you'll bring us in the futureSmile

Keep up the good work!


- klikkamongo - 2009-12-13

VictorV Wrote:Try the 9.11 Pre-release. http://sourceforge.net/projects/xbmc/files/XBMC%20for%20Windows/pre-release/xbmc-9.11-b2.exe/download

Is it possible to install it without loosing my scripts/plugins/settings?


- klikkamongo - 2009-12-14

klikkamongo Wrote:Is it possible to install it without loosing my scripts/plugins/settings?

I just downloaded the file, and used standard innstalation, the update was sucsessfull and NRK Browser now works. Thank you very much for the help and a perfect aplication!

One question, is it possible to edit stream quality?


- PanterA - 2009-12-14

klikkamongo Wrote:I just downloaded the file, and used standard innstalation, the update was sucsessfull and NRK Browser now works. Thank you very much for the help and a perfect aplication!

One question, is it possible to edit stream quality?

Do as Victor explained earlier. Right click on any NRKpluginfolder -> Plugin settings. Choose higher rate.


Barneprogram - Jul i Svingen - bweb - 2009-12-15

VictorV Wrote:New version with minor fixes:

http://prosjektet.net/xbmc/plugins/nrk_plugin_09122009.zip

* True Blood and series that uses same system will now work
* Windows and Linux will now play all playlists. No more "This video is not supported by your platform"
* Removed kids play lists cause of site restructuring.I think most of it can be found under program anyways

Some other series/programs that don't work properly?

Hei og takk for plugin - fantastisk. Ønsker å få hele familien over på PC'en og dette hjelper svært mye! Men leser av tråden at det er litt problemer med barneprogram - og prøvde julekalenderen til NRK i går - "Jul i svingen". Det fungerte ikke (prøvde forskjellige episoder). Er dette noe du også fikser - julepresang for de små? Uansett takk for godt arbeidSmile


- klikkamongo - 2009-12-15

PanterA Wrote:Do as Victor explained earlier. Right click on any NRKpluginfolder -> Plugin settings. Choose higher rate.

Thanks for the tip. This plug-in made my media center perfect!


- VictorV - 2009-12-16

bweb Wrote:Hei og takk for plugin - fantastisk. Ønsker å få hele familien over på PC'en og dette hjelper svært mye! Men leser av tråden at det er litt problemer med barneprogram - og prøvde julekalenderen til NRK i går - "Jul i svingen". Det fungerte ikke (prøvde forskjellige episoder). Er dette noe du også fikser - julepresang for de små? Uansett takk for godt arbeidSmile

Jeg fikser det gjerne, men jeg trenger en logg der det feiler, siden det fungerer utmerket hos meg..


- berland - 2009-12-16

New bug-report: Clicking on 'Program' -> "Mest sett totalt", results in a Python Keyerror;
Code:
21:25:26 T:140082769799232 M:1273503744   DEBUG: Loading fileitems [plugin://video/nrk media browser/?program&&type=%27program%27&id=None&]
21:25:26 T:140082769799232 M:1273503744   DEBUG:   -- items: 7, directory: plugin://video/nrk media browser/?program&&type=%27program%27&id=None& sort method: 0, ascending: false
21:25:26 T:140082187049232 M:1273503744  NOTICE: "exceptions.KeyError in create_directory at line 339 in file","plugin://NRK_API/xbmcplugin_program.py","          'spill'"
21:25:26 T:140082187049232 M:1273503744  NOTICE: exceptions.KeyError

This is with 13122009-version


- berland - 2009-12-16

Another bug-report while I'm at it Smile Your 13122009-version fixed the bug report I reported on the 13th (rapid development I must say).

Now I click on Program -> Alfabetisk -> B -> Bergensbanen minutt for minutt -> Bergensbanen del 1

Result in Python AttributeError:
Code:
21:30:20 T:140082174273808 M:1227530240   DEBUG: Loading: /home/xbmc/.xbmc/temp/unicodedata.so
21:30:20 T:140082174273808 M:1227530240   DEBUG: RegisterExtensionLib, adding unicodedata.so (0x633d400)
21:30:20 T:140082174273808 M:1227530240   DEBUG: xbp_dlsym - load symbol initunicodedata
21:30:20 T:140082174273808 M:1227403264   DEBUG: xbp_dlopen loading python lib /usr/local/share/xbmc/system/python/python24.zip/array.so. flags: 2
21:30:20 T:140082174273808 M:1227403264   DEBUG: Loading: /home/xbmc/.xbmc/temp/array.so
21:30:20 T:140082174273808 M:1227403264   DEBUG: RegisterExtensionLib, adding array.so (0x6338ea0)
21:30:20 T:140082174273808 M:1227403264   DEBUG: xbp_dlsym - load symbol initarray
21:30:21 T:140082174273808 M:1227403264  NOTICE: PLUGIN::CONNECTION -> '/nett-tv/silverlight/getmediaxml.ashx?id=581966&hastighet=1800&vissuper=true' -> status code: 200
21:30:21 T:140082203834640 M:1227403264  NOTICE: mms://mms-icanal-od.online.no/norsk-ripub/autodistribusjon/PRHO63004009AA-1Mbit.wmv
21:30:21 T:140082203834640 M:1227403264  NOTICE: PLUGIN::CONNECTION -> Connection to http-icanal-od.online.no requested...
21:30:21 T:140082174273808 M:1227415552  NOTICE: PLUGIN::CONNECTION -> '/norsk-ripub/autodistribusjon/PRHO63004009AA-1Mbit.wmv?' -> status code: 400
21:30:21 T:140082769799232 M:1227415552   DEBUG: WaitOnScriptResult- plugin returned failure
21:30:21 T:140082203834640 M:1227415552  NOTICE: PLUGIN::SETTING -> extended_errormsg: True
21:30:21 T:140082769799232 M:1227415552   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://video/nrk media browser/?program&&image=%27http%3A%2F%2Ffil.nrk.no%2Fcontentfile%2Ffile%2F1.6886158.1259329671%21f169CropList%2Fimg100x57.jpg%27&parent_session=%27session_-7530751837030605661%27&sessionkey=%27session_-7530751837030605661%27&playable=True&type=%27klipp%27&id=581966&]
21:30:21 T:140082769799232 M:1227415552   DEBUG: Playlist Player: one or more items failed to play... aborting playback
21:30:21 T:140082769799232 M:1227415552    INFO: Loading skin file: DialogOK.xml
21:30:21 T:140082769799232 M:1227415552   DEBUG: Load DialogOK.xml: 4.21ms
21:30:21 T:140082769799232 M:1227415552   DEBUG: ------ Window Init (DialogOK.xml) ------
21:30:21 T:140082769799232 M:1227415552   DEBUG: Alloc resources: 0.13ms (0.00 ms skin load)
21:30:21 T:140082203834640 M:1226788864  NOTICE: "exceptions.AttributeError in urlsplit at line 89 in file","../Python/Lib/urlparse.py","          'tuple' object has no attribute 'find'"
21:30:21 T:140082203834640 M:1226788864  NOTICE: exceptions.AttributeError
Now it seems from the log that playback already failed so the plugin should probably just fail more gracefully?


- berland - 2009-12-16

ViktorV, you're doing such a great job. Could you by any chance try to upload the code to for example http://code.google.com/p/xbmc-addons/ and use that as the source code repository for development?

I know it would be easier for myself to follow your changes and contribute more directly to the development.

We probably have to ask someone to get commit access to the repository.


- VictorV - 2009-12-17

I just sent a pm to Nuka1195 with a request for repo. access.
I fixed you earlier bugreports, but hopefully I you can get a updated version from repo.


- bweb - 2009-12-17

VictorV Wrote:Jeg fikser det gjerne, men jeg trenger en logg der det feiler, siden det fungerer utmerket hos meg..

Vet ikke helt hvor jeg skal lete etter logg-filen, er ny både i XBMC og Ubuntu.
Ligger loggen et sted i .xbmc/...? (Sikkert mange som har spurt om dette - sorry!) Skal legge ut logg hvis jeg finner den.

Kjører en nyoppdatert ubuntu 9.10 og nrk_plugin_09122009.zip (har ikke pakkeprogram for .7z - noen anbefalinger for 7z-program for ubuntu?). Jeg får kjørt "Jul i svingen" via VLC i 9.10 - men altså ikke via XBMC.


- berland - 2009-12-17

bweb Wrote:Vet ikke helt hvor jeg skal lete etter logg-filen, er ny både i XBMC og Ubuntu.
Ligger loggen et sted i .xbmc/...? (Sikkert mange som har spurt om dette - sorry!) Skal legge ut logg hvis jeg finner den.

Kjører en nyoppdatert ubuntu 9.10 og nrk_plugin_09122009.zip (har ikke pakkeprogram for .7z - noen anbefalinger for 7z-program for ubuntu?). Jeg får kjørt "Jul i svingen" via VLC i 9.10 - men altså ikke via XBMC.
The log-file is in .xbmc/temp/xbmc.log (on Ubuntu, and most likely all Linux versions).

I usually provoke the bug, and then immediately go to the end of that file, and cut out the lines that seems related to the plugin error.

On Ubuntu, write the command '7z' in a command line. If you don't have the program installed, you get the following output:
Code:
The program '7z' is currently not installed.  You can install it by typing:
sudo apt-get install p7zip-full
So type that command, and you will have the 7z-extracter.

Then use
Code:
7z x nrk_plugin.....7z
to extract.


- bweb - 2009-12-17

VictorV Wrote:Jeg fikser det gjerne, men jeg trenger en logg der det feiler, siden det fungerer utmerket hos meg..

Her er feilmeldingen i loggen fra "Jul i Svingen" testing - langt som et ondt år så jeg fikk ikke lagt inn alt. Legger derfor bare til der hvor selve feilmeldingen kommer. Har forøvrig testet med versjonen fra 13.12.2009 (takk for hjelpen berland!) men med samme resultat.

Code:
17:05:40 T:3078539120 M:1866084352   DEBUG: ------ Window Deinit (DialogOK.xml) ------
17:05:40 T:2859834224 M:1866084352   ERROR: PluginConnectionError: (PluginConnectionError::Connection Exception Direction!)
17:05:40 T:2859834224 M:1866084352   ERROR: Traceback(7) - most recent call last:
17:05:40 T:2859834224 M:1866084352   ERROR: ------------------------------------------------------------
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin://default.py, line 85, in ?
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin.Main()
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin://NRK_API/xbmcplugin_program.py, line 231, in __init__
17:05:40 T:2859834224 M:1866084352   ERROR:      self.open()
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin://NRK_API/xbmcplugin_program.py, line 246, in open
17:05:40 T:2859834224 M:1866084352   ERROR:      self.mode = self.mapping[self.state.type]()
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin://NRK_API/xbmcplugin_program.py, line 201, in _handle_show_clip
17:05:40 T:2859834224 M:1866084352   ERROR:      else: self.item = self.api.get_show_clip(
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin://NRK_API/api_nrk.py, line 205, in get_show_clip
17:05:40 T:2859834224 M:1866084352   ERROR:      data = self.dman.get_data(url)
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin://NRK_API/connection_manager.py, line 275, in get_data
17:05:40 T:2859834224 M:1866084352   ERROR:      data = self.open_connection(url, mode, body, headers, silent)
17:05:40 T:2859834224 M:1866084352   ERROR:      plugin://NRK_API/connection_manager.py, line 242, in open_connection
17:05:40 T:2859834224 M:1866084352   ERROR:      'No data received. Aborting...',
17:05:40 T:2859834224 M:1866084352   ERROR: ------------------------------------------------------------
17:05:40 T:2859834224 M:1866084352   ERROR: Connection to host http-icanal-od.online.no raised exception
17:05:40 T:2859834224 M:1866084352   ERROR: No data received. Aborting...
17:05:40 T:2859834224 M:1866084352  NOTICE: Plugin encountered a error retreiving virtual directory
17:05:40 T:2859834224 M:1866084352    INFO: Scriptresult: Success
17:05:40 T:2859834224 M:1865625600    INFO: Python script stopped
17:05:40 T:2859834224 M:1865625600   DEBUG: Thread 2859834224 terminating



- berland - 2009-12-17

May I suggest a name change for the plugin from 'nrk media browser' to simply 'NRK'?