[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) |
- VictorV - 2009-07-20 If womeone wants and have the time, the rest of the radio channels could be added to the webradio.xml file in the resources subdirectory of the plugin. It's just to look at the entries allready there and just use a simple string for identification. http://www.nrk.no/informasjon/hjelp/oversikt_over_nrk_no/lyd/ I've made icons for all of them. Found in resources/images directory I'l also try to make a better solution for selecting format and bitrate some time in near future - spiff - 2009-07-20 wiso was so kind as to add it to win32 as well - so now it should work there. - The-Boxhead - 2009-07-20 im having the same issues as reported b4, not able to enter any of the categories - berland - 2009-07-20 The-Boxhead Wrote:im having the same issues as reported b4, not able to enter any of the categoriesI got this one with the latest zip-file from ViktorV as well, my previous patch will solve that (you get 'tuple index out of range' error in the log). This is due to settings.xml giving the value of something like 30211 which is too large an index for a tuple of 3 or 4 elements. I don't get why the values are like that in settings.xml, but I guess there is some meaning to it. Anyway, thanks to everyone for the great job, I am sure we will have this plugin settled in short time. Your efforts did at least spark an xbmc-donation from my behalf. - berland - 2009-07-20 berland Wrote:I got this one with the latest zip-file from ViktorV as well, my previous patch will solve that (you get 'tuple index out of range' error in the log). Code has changed, so my workaround for 'tuple index out of range' now reads: Code: diff --git a/NRK_API/xbmcplugin_program.py b/NRK_API/xbmcplugin_program.py - spiff - 2009-07-20 works perfectly - on linux cheers - The-Boxhead - 2009-07-21 Could someone please tell me how to apply that fix. im not a skilled programmer i've been lookin trough the plugin files but couldent find any section looking like the one berland posted as a fix. In what file should i put this fix ? - spiff - 2009-07-21 this is what i did; 1) saved the given diff as a patch file 2) cd'd to the plugin directory 3) did patch -p1 < patch file it complained so i had to do dos2unix NRK_API/xbmcplugin_program.py then redid 3) - The-Boxhead - 2009-07-21 Okay - never done a patch work like this in linux b4 But i got to this error: Quote:patch unexpectedly ends in middle of line I also tried the dos2unix command (had to google that one and download tofrodos utils. but same error - prolly just me messing stuff up .... this is my rejection file created by the patch command: Quote:*************** class Main(WebTV): - VictorV - 2009-07-21 Damn this! I can't see what does it. I've made a quickfix that should let you set the settings from settings window. http://prosjektet.net/xbmc/plugins/nrk_plugin_21072009.7z - The-Boxhead - 2009-07-21 YES !!!! it works perfect so far, playing high quality NRK streams Thank you so much VictorV, Spiff, berland and everyone making this plugin work !! - VictorV - 2009-07-25 Good to hear boxhead I've spent a shitload of time creating something completly useless now :p I came across the teletext service at nrk's webpages, and thought it couldn't be that hard or time demanding to implement a parser for that in this plugin. I guess I was wrong.. I've ended up with a python script that parses the teletext table from the html markup, translates it into fonts represented by binary strings, generates an array and writes out a png image. Since it's pure python solution it's not superfast, but after some improvements, it's absolute usable. There's also some small changes in code in other section, but pretty much just some clean up of code. I'll have to try working out some bugs next time I spend some time with the plugin. Fix the search. Clean up playlist section, as worked great before I messed up the code Fix support for video and radio podcast, and improve the webradio section Shouldn't be to much work, but things really need to be polished a bit Download: http://prosjektet.net/xbmc/plugins/nrk_plugin_24072009.7z - VictorV - 2009-07-25 I almost forgot.. Here the complete xml file with radio streams from nrk: http://prosjektet.net/xbmc/plugins/webradio.xml Just download, and add to resources directory within the plugins home directory. The icons should already be there What do you think about the podcast.. Should they be scraped from the page or set static in a xml file, as the radio streams? I don't think they extending/updating the list very often and there's alot of outdated/empty entries. - VictorV - 2009-07-26 There was some question about the podcasts, so I throwed together a quick solution there. http://prosjektet.net/xbmc/plugins/nrk_plugin_26072009.7z Should have a working podcast section - The-Boxhead - 2009-07-26 Excellent Victor ! your work is greatly appreciated ! Everything works very well !! |