Posts: 28
Joined: Dec 2004
Reputation:
0
first of all! thanx to enderw for making this little tvguide! all fame to him! i've made a few changes in his script so it now reads one more channel (ztv)... the problem now is how to get it to read more! i need to put clientcookie inside the script so it will read all the channels instead of only six. can someone take a look and try to add cookie support? feel free to modify the code also because it's very buggy and takes alot of resources on the xbox!
thanx
Posts: 28
Joined: Dec 2004
Reputation:
0
ok... i'll change the code... thanx for the .png!
Posts: 27
Joined: Oct 2004
Reputation:
0
Ducco
Junior Member
Posts: 27
thanx for a nice script,but is it possible to add more channels to it??i would like to see the guide for tv3se,tv3dk,ztv sverige,3+,svt1,svt2,dk1 and dk2
Posts: 27
Joined: Oct 2004
Reputation:
0
Ducco
Junior Member
Posts: 27
i have png images for all the channels,exept some spesial ones for tv3dk and tv3se
Posts: 28
Joined: Dec 2004
Reputation:
0
hmm! this isn't going very well! what i did instead of trying to figure out the cookie thing was to write an email to the people behind dagbladet's tvguide. unfortinatly i got no response from them... but i'm still waiting! it's only bin 3 days or so since i sent the email so i'll wait! i've given up the cookie support... i don't understand anything about the cookie... i've looked into nrkbrowser.py but i don't understand the full pattern of how cookies work... so enderw if u got some spare time some day please get me started or something!
cheers
Posts: 249
Joined: Feb 2005
Reputation:
0
EnderW
Skilled Python Coder
Posts: 249
well, the whole point with clientcookie is that you don't have to understand anything about cookies. it handles cookies automatically, like any web browser. when you send the data about what channels you want listed, the server returns a cookie which is stored automatically by clientcookie if you use it to open the url. when you then load the overview page, their server will query for a cookie which is then returned by clientcookie. the server then creates the page out from the data it got from the cookie.
what i meant that you should look at in the nrkbrowser script is how the data is sent to the server when selecting the channels. there is a way for encoding web forms automatically, as long as you provide it with the parameters. the cookies you don't have to worry about as long as you use clientcookie instead of urllib. i'm sorry if i wasn't clear about this before, but i thought it was pretty clear...
xbmcscripts.com administrator
Posts: 28
Joined: Dec 2004
Reputation:
0
yes, i've looked into the cookie stuff and seen how the lines in form sends the values to the url. what i don't understand is how to make my own form+ that i don't know what code i need to use because the nrk script uses some stuff that i don't need. there are also some differeses in how the url is fetched to the xbox. the tvguide script uses raw = (get_data(self.programurl)) but nrk script doesn't. should i change the raw = (get_data(self.programurl)) to something with clientcookie.urlopen?
cheers
Posts: 28
Joined: Dec 2004
Reputation:
0
really nice! i'll take a look! 10xthanx!
:bowdown: