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)

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


- mif86 - 2010-11-13

Very nice! But there is a minor bug that I had to fix before getting it working:

ERROR: Error Type: <type 'exceptions.SyntaxError'>
ERROR: Error Contents: ("Non-ASCII character '\\xc3' in file /home/finstad/.xbmc/addons/plugin.video.nrk/default.py on line 29, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details", ('/home/finstad/.xbmc/addons/plugin.video.nrk/default.py', 29, 0, None))

This was easily fixed by adding this as the very first line in default.py:
# -*- coding: utf-8 -*-

I guess newer version of python requires you to explicitly set encoding.


- scope - 2010-11-13

Updated and working again. Smile

Tusen takk.


- VictorV - 2010-11-15

looks great ventech!

suggestion:
use "ctl00_contentPlaceHolder_ProjectImage_projectImage" as fanart for "projects"


- takoi - 2010-11-16

VictorV Wrote:suggestion:
use "ctl00_contentPlaceHolder_ProjectImage_projectImage" as fanart for "projects"
This is one of the things i couldn't find a solution to. xbmc doesn't handle redirects like with thumbs so you'll need the direct link. I've tried using urllib to follow and read the header but its just way too slow. It means waiting for several seconds every time you enter a directory.


- VictorV - 2010-11-16

I've ran into that same problem dealing with thumbnails once. I solved it cpickling a dict with info from header to disk, so you would only need to do that once. But that's a lot of extra code for such a small feature.

You might be able to reverse engineer how the redirect is done and create a client side solution if you study the decoded data from the filename in the redirect uri?


I took the teletext feature in my old plugin and made a script if someone other would like this:
http://prosjektet.net/xbmc/script/script.nrkteletext.zip


- takoi - 2010-11-16

Good idea, but im unsure of how well this will preform. If im not mistaken serializing and deserializing wont even be polynomial of the input but a much bigger constant possibly as large as all "projects". And this must be done every time you change directory. Think i'll make a ticket to try and fix this in xbmc first


- VictorV - 2010-11-19

I modified your plugin and created a version that will run on older xbmc builds. Your design made this a two minutes job ventech Smile Only tested it on my xbox build

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


- takoi - 2010-11-19

development is here now: https://github.com/takoi/xbmc-nrk-addon so you should make a fork if you want an easy way to keep it updated.


- scope - 2011-01-02

Could somebody please help me add code for a proxy to the NRK browser? Im back from a holiday in Norway and have set up a proxy server there I can use. Smile


- The-Boxhead - 2011-01-02

Hrmf... NRK has redone it's radio streams so no radio works anymore with this addon.

If anyone with python skills could have a look it would be great.... Spiff ? Smile


- spiff - 2011-01-02

i don't touch the snake unless i absolutely have to.. which i don't here, radio is unusable due to the "music" they annoy you with.


- The-Boxhead - 2011-01-02

i know you have been "cheating" with this snake before spiff Smile
I'll give you free lifetime support of beer Wink


- spiff - 2011-01-03

never did anything with nrk. why don't you nag ventech, you know, the author.


- The-Boxhead - 2011-01-03

Heck i'll nag anyone Wink Ventech or whoever steps up Smile

Sorry if i was wrong about you patching some stuff on NRK script way back in time. My memory must be fading...

Well maybe i just update the stream adresses myself, python cant be much harder than visual basic Wink


- namaan - 2011-01-05

The-Boxhead Wrote:Hrmf... NRK has redone it's radio streams so no radio works anymore with this addon.

If anyone with python skills could have a look it would be great.... Spiff ? Smile

Well, it's probably because they changed hosting from Østfold Univeristy College(site: norwegian) to their own hosting at NRK (site: norwegian)

But, as I only just started using this addon - I must ask; How were you able to use the radio-feature before?

If it's similar to this, then you would only need to change the value of
<link>http://media.hiof.no/streams/m3u/nrk-super-128.m3u</link> into:
<link>http://lyd.nrk.no/nrk_radio_super_mp3_h</link> . In theory atleast.

It should also be said that due to this "move", NRK is able to provide even higher quality streams, from HiØ you only got at max 128k, on the new hosting you get 196k.


On a more "related" note: Nice job on the addon. What are the plans for future releases?