Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 47
[RELEASE] Norwegian NRK Web-TV (Video) Plugin
#31
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/over...rk_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
Reply
#32
wiso was so kind as to add it to win32 as well - so now it should work there.
Reply
#33
im having the same issues as reported b4, not able to enter any of the categories Sad
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply
#34
The-Boxhead Wrote:im having the same issues as reported b4, not able to enter any of the categories Sad
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).

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.
Reply
#35
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
index 41bb18f..b38d744 100644
--- a/NRK_API/xbmcplugin_program.py
+++ b/NRK_API/xbmcplugin_program.py
@@ -266,9 +266,9 @@ class Main(WebTV):
         self.settings['cache_files'] = xsetting('cache_files') == 'true'
         self.settings['fetch_path'] = xsetting('fetch_path') == 'true'
         self.settings['connection_speed'] = ( 600, 1000, 1800,
-                    )[int(xsetting("connection_speed"))]
+                    )[2]
         self.settings['cache_time'] = ( 999, 1, 2, 12, 24,
-                    )[int(xsetting("cache_time"))]
+                    )[2]
     # - EOM -
Reply
#36
works perfectly - on linux Smile

cheers
Reply
#37
Could someone please tell me how to apply that fix. im not
a skilled programmer Wink 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 ?
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply
#38
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)
Reply
#39
Okay - never done a patch work like this in linux b4 Wink
But i got to this error:
Quote:patch unexpectedly ends in middle of line
Hunk #1 FAILED at 266.

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):
*** 266,274 ****
self.settings['cache_files'] = xsetting('cache_files') == 'true'
self.settings['fetch_path'] = xsetting('fetch_path') == 'true'
self.settings['connection_speed'] = ( 600, 1000, 1800,
- )[int(xsetting("connection_speed"))]
self.settings['cache_time'] = ( 999, 1, 2, 12, 24,
- )[int(xsetting("cache_time"))]



--- 266,274 ----
self.settings['cache_files'] = xsetting('cache_files') == 'true'
self.settings['fetch_path'] = xsetting('fetch_path') == 'true'
self.settings['connection_speed'] = ( 600, 1000, 1800,
+ )[2]
self.settings['cache_time'] = ( 999, 1, 2, 12, 24,
+ )[2]
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply
#40
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_p...1072009.7z
Reply
#41
YES !!!! it works perfect so far, playing high quality NRK streams Smile

Thank you so much VictorV, Spiff, berland and everyone making this
plugin work !!
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply
#42
Good to hear boxhead Smile

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.

Image

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 Smile 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_p...4072009.7z
Reply
#43
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.
Reply
#44
There was some question about the podcasts, so I throwed together a quick solution there.

http://prosjektet.net/xbmc/plugins/nrk_p...6072009.7z
Should have a working podcast section Smile
Reply
#45
Excellent Victor ! your work is greatly appreciated !

Everything works very well !!
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 47

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Norwegian NRK Web-TV (Video) Plugin9
This forum uses Lukasz Tkacz MyBB addons.