• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 9
NRKBrowse with cookie support
#61
since i'm behind a proxy and couldn't get it to work, i added som lines to get it working.

Quote:...
...
#importing modules (be sure to put the clientcookie folder in "python/lib" on your xbox!)
import urllib, re, clientcookie, xbmc, xbmcgui, threading
import urllib2

# change this to your proxy
proxy_handler = urllib2.proxyhandler({'http': 'http://192.168.1.3:8080'})
opener = clientcookie.build_opener(proxy_handler)
clientcookie.install_opener(opener)

class nrk:
...
...

(tested with with xbmc.2005.0220-expert)

many thanks to the author for this awesome script :bowdown:
Reply
#62
@hydrokortison

is there a way to get this to work with other scripts? because i use a proxy setting in xbmc and this only works for weather rss imdb, but not with scripts. maybe you have a solution?

thanks
Reply
#63
time for a new release!

some of you might be disappointed, however, as it doesn't include as much as some of you would like. i will most likely not work on it anymore either, until a solution for starting streams from a starttime is implemented into xbmc. who knows when that will happen...

so, what's new?

- added support for the "direkte" section of nrk. just note that sports shows require you to pay and thus doesn't stream (i have no idea whether it works - if you pay for the sport content on nrk.no - playing the streams using this script.).
- added a clock.
- added showing of descriptions for programs.
- added proxy support (thanks hydrokortison).
- added a project mayhem iii skin.

except from these additions there's not much new. please report bugs as usual (the proxy feature is not tested! someone with proxy please report...).

enjoy! Smile

http://enderw.emutalk.net/nrkbrowser.rar
xbmcscripts.com administrator
Reply
#64
cool. thanks... :kickass:
Reply
#65
(guest @ jan. 29 2005,13:38 Wrote:found the bug. nrk sends a starttime value (inside the asx ) that only media player seems to understand it seems. bsplayer did not accept it. if there is a start time parameter in mplayer fixing this would be easy. if not, then it's impossible. if anyone knows of such a parameter, please tell me Smile

-edit-

according to this http://members.cox.net/alexpoet/download.../xbmc.html , there is no such parameter. funny how i never really saw this issue before. anyways, only solution left then is to remove all the substreams. not a nice solution, but the only one i see possible since all the filenames are the same for each program. only the starttime value changes. suggestions are most welcome...
a comment on the starttime issue. i did a dive into cvs to look at the libpython source, and noticed a new player function called seektime. this function was added 11th mars, so most users will probably not have this in their build yet.

Quote:seektime() -- seeks the specified amount of time as fractional seconds.
the time specified is relative to the beginning of the
currently playing media file.

this seems like a promissing solution to solve the starttime for clips.
Reply
#66
thanks for the heads up, but i am already aware of this. the problem, however, is that it seeks to the point you specify - not start the clip there. this make some issues occour because of buffer and so on. at least for .wmv files which nrk use. i haven't tried this myself though, but that's at least how i understood thor's investigations. there is a thread on it under python development i believe...
if this info is wrong (i'd love it to be), then please tell me Smile

the player function in xbmc do support a starttime parameter though (but not through python), but i dunno if that would do what i'd want. to tell the truth i know very little about how mplayer and xbmc interacts and what they actually can support.
xbmcscripts.com administrator
Reply
#67
(enderw @ mar. 18 2005,23:13 Wrote:the player function in xbmc do support a starttime parameter though (but not through python), but i dunno if that would do what i'd want.
a colleague of mine is working on a nrk.pm (perl module) doing almost the same as your browser. he hasn't investigated this seek time feature in mplayer against nrk's vma files. if he figures a way to do this against plain mplayer, i'll give you an update.

when the new libpython starts to appear in cvs builds, the xmbc.player().seektime() we hope fully give us the same usable feature.
Reply
#68
woops, i forgot to post this little bonus in my last post:

http://enderw.emutalk.net/nrkradio.rar

it's a very very simple script i made some time ago which just shows a list with nrk's radio channels. no login is required, but speed settings can be set inside the script (high - 160kbit - is recommended though).
xbmcscripts.com administrator
Reply
#69
for some reason, the nrkradio script doesn't work with a clean install of xbox_media_center_2005-05-02_build-ind

is it dependent on other scripts to run? maybe it needs a bit of updating to work with this version of xbmc?

it starts up and buffer just fine, but no audio. nrkbrowser works just fine....
Reply
#70
it works with xbmc.2005.0511-expert, but only with analog audio out. used to work with digital audio...oh well...
Reply
#71
i can't seem to make this script work.

i have done the following:

1. copied the clientcookie module (whole folder) into python/lib.

2. copied nrk.png to the skin/pm3/media folder.

3. edited the nrkbrowse.py and correctly entered my username/password.

4. uploaded the nrkbrowser.py to the script folder.

i then try to push nrkbrowser.py file from the script option in xbmc, when i push it i get a msg "running" behind the file for a couple of second, then it goes away and nothing happens.

any thoughts of what i can be doing wrong?

i have the build from 06/05/05.

goodspeed
Reply
#72
after getting (running) for a few secs, press the white button and tell me what error you get. also, do other scripts work?
xbmcscripts.com administrator
Reply
#73
hi, and thanks for fast answer. i get the following error message:

->python initialized <-
file "q:\scripts\nrkbrowser.py", line 48 url_login_formtarget = "[url]https://www7.nrk.no/brukerbase/logginnavspiller.aspx?avspiller=avspiller"uktid=1000016&retururl=http%3a%2f%2fwww7.nrk.no%2fnrkplayer%2floggetinn.aspx[/url]

syntax error: invalid syntax

did it help?

goodspeed
Reply
#74
download the script and install it again. make sure you only edit the places that are supposed to be edited. also don't edit it in notepad, but use wordpad instead.
xbmcscripts.com administrator
Reply
#75
thought i'd say that i'm working on an update for this script seeing as the nrk site is redesigned...stay tuned. might take at least a week before anything is released, but things might happen sooner.
xbmcscripts.com administrator
Reply
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 9

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