[RELEASE] Norwegian NRK Web-TV (Video) Plugin

  Thread Rating:
  • 6 Votes - 4.17 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
VictorV Offline
Senior Member
Posts: 123
Joined: May 2009
Reputation: 0
Location: Norway
Post: #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
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,178
Joined: Nov 2003
Reputation: 82
Post: #32
wiso was so kind as to add it to win32 as well - so now it should work there.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
The-Boxhead Offline
Donor
Posts: 943
Joined: May 2005
Reputation: 17
Location: Norway
Post: #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
find quote
berland Offline
Donor
Posts: 51
Joined: Jan 2009
Reputation: 0
Post: #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.
find quote
berland Offline
Donor
Posts: 51
Joined: Jan 2009
Reputation: 0
Post: #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 -
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,178
Joined: Nov 2003
Reputation: 82
Post: #36
works perfectly - on linux Smile

cheers

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
The-Boxhead Offline
Donor
Posts: 943
Joined: May 2005
Reputation: 17
Location: Norway
Post: #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
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,178
Joined: Nov 2003
Reputation: 82
Post: #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)

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
The-Boxhead Offline
Donor
Posts: 943
Joined: May 2005
Reputation: 17
Location: Norway
Post: #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
find quote
VictorV Offline
Senior Member
Posts: 123
Joined: May 2009
Reputation: 0
Location: Norway
Post: #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
find quote
Post Reply