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


- kolaf - 2010-07-17

I've basically tried every entry. Whenever it gets close to actually listing the shows under a heading, be it alphabetical, most popular, etc, I get a Python exception in python/lib/urlparse.py saying that a tuple has no attribute find. In urlsplit, line 89. This is with one of the latest nightly builds.


- VictorV - 2010-07-21

I finally got a computer to test it myself and there's something that has changed in their internal api i guess. I'll look into it tonight


- kolaf - 2010-07-22

VictorV Wrote:I finally got a computer to test it myself and there's something that has changed in their internal api i guess. I'll look into it tonight

That's what I thought, given that the error was in some internal files, not in your files.

I briefly considered looking into it to fix it, but I ended up hoping for you to fix it instead, or some of the XBMC crew Smile


- VictorV - 2010-07-22

luckily it was a small error. The connection manager didn't handle the HTTP 301 that occured. I implemented support for 301 (permanent redirection), but a real quick fix would be to just change the hostadress in api_nrk.py from "http://www1.nrk.no/nett-tv" to "http://www.nrk.no/nett-tv" to avoid the 301 i guess.

I also did some improvements, removed some old and outdated functionallity, and tried to make it compatible for both the old and the new plugin system for backwards compability. I will do some final touches, fight some real world persons (one of them atleast six years old!) that drives me insaine with their noise outside. Probably my better half also will demand some attention. But then I will commit the changes to repo Smile


- spiff - 2010-07-22

don't forget to send a pull req mail to the addons ml Smile


- kolaf - 2010-07-22

I did the quick fix you suggested, and now "program" works. However, it fails on programs with Norwegian letters. It throws a Unicode exception...

Apart from that, great work. I hope you continue updating it to achieve full functionality and keep up with the changes in XBMC and NRK.

Thanks,
kolaf


- VictorV - 2010-07-23

kolaf Wrote:I did the quick fix you suggested, and now "program" works. However, it fails on programs with Norwegian letters. It throws a Unicode exception...

Apart from that, great work. I hope you continue updating it to achieve full functionality and keep up with the changes in XBMC and NRK.

Thanks,
kolaf


I'm not sure what's wrong with urlencoded filenames with norwegian characters.

Following HTTP request sent from xbmc gives a 404 response code
Code:
GET /Disk08/100__rstokt_med_DS__B_r_ysund_/2009-01-07/B%C3%B8r%C3%B8ysund%20NRK1_20081230_1000-600.wmv?&MSWMExt=.asf HTTP/1.0
Accept: */*
User-Agent: NSPlayer/4.1.0.3856
Host: straumod.nrk.no:80
Pragma: no-cache,rate=1.000000,stream-time=0,stream-offset=0:0,request-context=1,max-duration=0
Pragma: xClientGUID={c77e7400-738a-11d2-9add-0020af0a3278}
Connection: Close

while following request gives a 200 response
Code:
GET /Disk08/100__rstokt_med_DS__B_r_ysund_/2009-01-07/B%C3%B8r%C3%B8ysund%20NRK1_20081230_1000-600.wmv?&MSWMExt=.asf HTTP/1.0
Host: straumod.nrk.no:80
Accept: */*
User-Agent: NSPlayer/7.10.0.3059
Pragma: no-cache,rate=1.000000,stream-time=0,stream-offset=0:0,request-context=1,max-duration=0
Pragma: xClientGUID={babac001-97d4-36e3-a1464e4b38c4a3ec}
Connection: Close

It doesn't throw a error now, but it still don't work. I might try to figure it out later.
Much of the functionallity seen in the prev. versions of the plugin aren't served by NRK anymore, and are now removed from the plugin (i guess i could remove half of the source code now). The teletext service is also temp. down. NRK says it will be back in a new version, so until then I have disabled that feature.
The rss feed sources can be manually edited with entries from http://www.nrk.no/podkast/

I have some problems comitting to svn atm, so here's a archived version http://prosjektet.net/xbmc/plugins/nrk.zip

spiff: will do that after I have downloaded and installed a new build of those hyper-modern XBMC, so I can play around with the addons system and read up on addons first.


- spiff - 2010-07-23

due to some misunderstandings, this will be a bit messy, sorry. we have our routines established now so it won't happen again.

we have some updates commited in our git. in particular; hungarian translations. you can find the addon.xml update here; http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=blob;f=plugin.video.rbk.no/addon.xml;h=9f46572829733b9ccb0a196fd0ed6e306085e4ee;hb=refs/heads/dharma-pre

i have no idea where the strings went, they can probably be found on trac in http://trac.xbmc.org/ticket/9657

additionally we have http://trac.xbmc.org/ticket/9712
normally i'd split that one off for you but forums are so icky for this, so until you're on the ml that's the best i cba to do Smile


- VictorV - 2010-07-24

Code:
[NRK]
-fixed: connection problems caused by unsopported HTTP response code. Also did some cleanup and changes that probably will cause some minor bugs ;)
-fixed: removed some outdatet functionallity
-changed: plugin structure modified to be compatible with addons
-deleted: removed NRK_API/feedparser/docs to decrease file count
-added: added feedburner documentation in a zip archive
-renamed: icons renamed for sorting

Archive: http://prosjektet.net/xbmc/plugins/plugin.video.nrk.zip


- VictorV - 2010-08-25

could people please confirm if the addon in last post works as it should? would be great Smile
Also if someone could replace this in repos it would be nice. I have no computer to develop at atm.


- OlaDonk268uey - 2010-08-28

Hi Smile

just installed xbmc on a linux pc.. after searching around i found this "app".. i tried installing it whit no luck :/ its just to zip the folder in to the plugin video folder right? i get a error message when i try to starte the app in xbmc... the error message sounds something like this: Feil! Script Mislyktes!

English:
Error Script failed!

have i done something wrong? (its probably there) XD

Regards Oladonk


- berland - 2010-08-29

I tried today the latest zip-file VictorV supplied, against a few-days-old dharma-branch compile (r33161). I installed the zip-file via the add-ons-system (it ate the zip-file directly, nice!) Some of the NRK-programs worked, but I also got error messages for some. Sorry for not being able to provide a more detailed bug report at this time.


- VictorV - 2010-08-30

OlaDonk268uey: There was a silly bug that might give you an error. I fixed and updated that now. You could also try to rename the folder from "plugin.video.nrk" to just "nrk" if you running the stable 9.11 version

I've tested it (just a quick view) on a recently build of dharma, on 9.11 (win) and some old xbox build and it seems to work okay. The only issue is some of the regex for different programs views is outdated and do not work (as far as I can see)


- pettergulbra - 2010-09-03

I can`t use anything almost.

I can use something of the old stuff.. Thats all. Get an error, but forgot to write it down, se if I find time to do that.


- VictorV - 2010-09-04

You tried to rename the directory to just "nrk" from "plugin.video.nrk"? I'm not sure what the old stuff is. You're using the last zip archive from this thread?


I'll try to get this up in the google repo this weekend, and then get the changes commited to the offical git repo if I manage to get hold on a descent computer setup.