• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 9
NRKBrowse with cookie support
#46
does anyone know if i would be able to watch live shows like ke the live broadcast of the world cup in skiing if i pay for the premium services at nrk.no ?
living in california i don't get my recommended daily dose of norwegians on skis :-)
Reply
#47
Quote:if you can't get it to work, please mail me at the mail you find in the script and i'll try to help you out.
i'll try to post on the forum anyway, as it may be others with similar problems.

from the sctipt output i get the following:
Quote:-->python initialized<--
traceback [most recent call last]:
file "q:\scripts\nrkbrowser.py", line 30, in ?
import urllib, re, clientcookie, xbmc, xbmcgui, threading
systemerror, null result without error in pyobject_call
[imports successfull] so far so good, drawing gui
fetching htmlpage :
htto://www7.nrk.no/nrkplayer/kategorimeny.aspx?secjon=hovedkategori_ld&verdi=1
fikk henta data

now, what seems to me is the problem is that it probably don't find the clientcookie library. is the path hardcoded somewhere? and if so, to where? and to you who have run this script successfull, can you have a look at the script output and see if you have this error? and what is the path for your xbmc install?

btw: the apple script works just fine, but it uses urlilib instead of clientcookie.
Reply
#48
enderw: i'm awfully sorry for that. i mixed your name up with vnm's.

vnm: yes i am norwegian and i do know this kingdom's copyright acts. saving nrk's public shown content does not violate nrk's aup or the norwegian copyright act. period.
Reply
#49
finally i got it working! Smile there never was a problem with the script, but with my xbmc install. but, hey! got to learn a lot about the community and how xmbc and the python implementation.

to anybody else with similar problems as i had, get a newer or different build of xbmc.
Reply
#50
i'd love to test this script, but i get the following error message.

the first time i first press the nrkbrowse script it will run for 0.5 seconds, then stops.. the second time it will start.. however, when i select a menu item i get an "unable to retrieve page" error..

it seems to fail on the import line. i have tried 4 different builds of xbmc.

any ideas?

-------------------------
05-12-8907 18:49:44 debug loadlibrarya('_ssl.pyd')
05-12-8907 18:49:45 debug executing entrypoint at: 0xb8e951 - dll: _ssl.pyd
05-12-8907 18:49:45 debug loadlibrary('_ssl.pyd') returning: 0x8c7120
05-12-8907 18:49:45 debug kernel32!getprocaddress(0x8c7120, 'init_ssl') => 0xb41aa0
05-12-8907 18:49:45 debug loadlibrarya('_sre.pyd')
05-12-8907 18:49:45 debug executing entrypoint at: 0xbca3cb - dll: _sre.pyd
05-12-8907 18:49:45 debug loadlibrary('_sre.pyd') returning: 0x8fc8e0
05-12-8907 18:49:45 debug kernel32!getprocaddress(0x8fc8e0, 'init_sre') => 0xbca120
05-12-8907 18:49:45 info traceback (most recent call last):
05-12-8907 18:49:45 info file "q:\scripts\nrkbrowser.py", line 30, in ?
05-12-8907 18:49:45 info
05-12-8907 18:49:45 info import urllib, re, clientcookie, xbmc, xbmcgui, threading
05-12-8907 18:49:45 info systemerror
05-12-8907 18:49:45 info :
05-12-8907 18:49:45 info null result without error in pyobject_call
05-12-8907 18:49:45 info
05-12-8907 18:50:18 info (imports successfull) so far so good, drawing gui
05-12-8907 18:50:18 info
05-12-8907 18:50:43 info fetching htmlpage : http://www7.nrk.no/nrkplay....verdi=2
05-12-8907 18:50:43 info
05-12-8907 18:50:44 info fikk henta data
05-12-8907 18:50:44 info
05-12-8907 18:53:36 info fetching htmlpage : http://www7.nrk.no/nrkplay....verdi=2
05-12-8907 18:53:36 info
05-12-8907 18:53:39 info fikk henta data
05-12-8907 18:53:39 info
Reply
#51
try rewriting the nrkbrowser following line
Quote:import urllib, re, clientcookie, xbmc, xbmcgui, threading
to:
Quote:import urllib
import re
import clientcookie
import xbmc
import xbmcgui
import threading

that way you can find out what import failed in this error message:
Quote:05-12-8907 18:49:45 info systemerror
05-12-8907 18:49:45 info :
05-12-8907 18:49:45 info null result without error in pyobject_call
Reply
#52
(eriktar @ mar. 01 2005,11:09 Wrote:try rewriting the nrkbrowser following line
Quote:import urllib, re, clientcookie, xbmc, xbmcgui, threading
to:
Quote:import urllib
import re
import clientcookie
import xbmc
import xbmcgui
import threading

that way you can find out what import failed in this error message:
Quote:05-12-8907 18:49:45 info systemerror
05-12-8907 18:49:45 info :
05-12-8907 18:49:45 info null result without error in pyobject_call

good idea. i will try this when i get home from work.

(jeg maa bare si at dersom dette funker saa er det et fantastisk script for oss som bor i utlandet og ikke har norsk tv :thumbsup: )
Reply
#53
i've moved the imports into seperate lines, and it fails on clientcookie.. strange, as it is where it is supposed to be /xbmc/python/lib/clientcookie..

what else can i try?
Reply
#54
try the build i recomended on pm. had the same problem myself until i found the correct build. everything seeb right, but did not work for some reason.
Reply
#55
getting it now.. thanks. will let you know
Reply
#56
same problem. Sad

05-12-8907 18:50:17 debug loadlibrarya('_ssl.pyd')
05-12-8907 18:50:17 debug executing entrypoint at: 0xb8e951 - dll: _ssl.pyd
05-12-8907 18:50:17 debug loadlibrary('_ssl.pyd') returning: 0x823f50
05-12-8907 18:50:17 debug kernel32!getprocaddress(0x823f50, 'init_ssl') => 0xb41aa0
05-12-8907 18:50:17 debug loadlibrarya('_sre.pyd')
05-12-8907 18:50:17 debug executing entrypoint at: 0xbca3cb - dll: _sre.pyd
05-12-8907 18:50:17 debug loadlibrary('_sre.pyd') returning: 0x9d0d80
05-12-8907 18:50:17 debug kernel32!getprocaddress(0x9d0d80, 'init_sre') => 0xbca120
05-12-8907 18:50:17 info traceback (most recent call last):
05-12-8907 18:50:17 info file "q:\scripts\nrkbrowser.py", line 35, in ?
05-12-8907 18:50:17 info
05-12-8907 18:50:17 info import clientcookie
05-12-8907 18:50:17 info systemerror
Reply
#57
either you haven't followed the instructions properly - moving the clientcookie folder to the "python\lib" folder, or your xbmc version isn't good...that's my guess at least.
xbmcscripts.com administrator
Reply
#58
enderw: fair comment, but the thing is i have tried 5-6 different builds, from different people, including the build eriktar recommended (exact same build, and its working for him). i have made sure the clientcookie folder goes to the correct folder (i've noticed the lib folder has an upper case l, but i dont know if its case sensitive).. does the path of xbmc matter? is anything hardcoded anywhere?
Reply
#59
sorted! Smile

for some reason it would not pick up the clientcookie folder..

here is what i did, and it now works:

get python23.zlib to your machine
open the file in winzip
drag the clientcookie folder to the zlib file (basically a zip file)
copy back to the xbox (after taken a copy of the existing one).

and i have to say, this is one nice script. time to catch up on some of the programs i have missed..

one thing tho.. i can not see the live feed anywhere.. is it possible to watch it?
Reply
#60
weird solution, but i am still pretty sure you did something wrong seeing as it works for everyone else Wink

there isn't really something hardcoded anywhere in the script itself, but python uses the lib (upper case l) folder for added modules. adding it to the zlib as you did will of course work to, but it is a more cumbersome option. i might have been a bit vague in the install instructions, but did you move the whole folder to the lib? final path for all of the module's .py files would be "python\lib\clientcookie"

-edit-
disregard the above, seems like i skipped a post of yours. i have no clue why this happened on your install though - i haven't heard of anyone else with that problem yet. it could be that you transferred the files in wrong mode on the ftp, but that is unlikely and perhaps not even relevant.
--/edit--

wathing the live feed is not possible in the script as it is now. i haven't done much research about how the live section works, but i don't really have time to do it either for a while. i might add checking it out to my to-do list though, but i am not sure it is possible (actually i have no idea yet).
xbmcscripts.com administrator
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 9

Logout Mark Read Team Forum Stats Members Help
NRKBrowse with cookie support0