Posts: 226
Joined: Mar 2008
Reputation:
2
2011-10-29, 20:41
(This post was last modified: 2011-10-29, 20:42 by beschmid.)
Script Error
When selecting a Live stream I am still getting a python error, at least thats what it looks like to me. I'm kind of a dummy.
12:39:12 T:2764041072 INFO: -->Python script returned the following error<--
12:39:12 T:2764041072 ERROR: Error Type: <type 'exceptions.IndexError'>
12:39:12 T:2764041072 ERROR: Error Contents: list index out of range
12:39:12 T:2764041072 ERROR: Traceback (most recent call last):
File "/home/brad/.xbmc/addons/plugin.video.espn3/default.py", line 523, in <module>
PLAYESPN3(url)
File "/home/brad/.xbmc/addons/plugin.video.espn3/default.py", line 191, in PLAYESPN3
PLAY(url,'n360')
File "/home/brad/.xbmc/addons/plugin.video.espn3/default.py", line 239, in PLAY
auth = smilurl.split('?')[1]
IndexError: list index out of range
12:39:12 T:2764041072 INFO: -->End of Python script error report<--
Posts: 40
Joined: Oct 2006
Reputation:
0
Hello Guys,
I had the plugin working with the old version / default.py. Im trying to get it to work with the new version but I am having problems and have several questions. I am using an unauthorized isp with a username/password/swid/affiliate id.
1) The only files that the plugins needs are userdata.xml and cookies.lwp with the appropriate information? Right? default.py does not need to be edited.
2) Files are stored in /userdata/addon_data/plugin.video.espn3 or /addons/plugin.video.espn3 ?
3) The cookies.lwp template in post has an invalid cookie expiration data and must be changed. Right?
4) Clear cookies and use login button in plugin settings must be turned off if you are using a isp not listed.
Thanks.
Posts: 1,432
Joined: May 2004
Reputation:
73
BlueCop
Skilled Python Coder
Posts: 1,432
2011-10-29, 22:53
(This post was last modified: 2011-10-30, 00:20 by BlueCop.)
too much to respond to.
post logs to pastebin and send them in pm.
I worked on handling error messages from the service last night before sleep.
it has different urls for grabbing smil based network and if you are an extended network user. It will be fixed later.
I still need feed back on which log-ins are working. i can confirm att. someone confirmed verizon.
Update:
also some errors were cause by a typo in of nal vs ngl for the goalline network id in networkmap dictionary.
also if you are having errors with manually edited swids. Try to both disable login and enable login. never check clear cookies if you are using edited files. only use clear cookies when you want it to re-grab your cookies and userdata.xml.
I committed an update to fix the goal line typo. I also added some of the error handling for espn3 responses. It will inform you if you aren't authorized or blacked out.
also don't modify that line. I wanted to get feedback if it worked. It will add the parameter if you have login enabled.
Posts: 226
Joined: Mar 2008
Reputation:
2
I would like to send you some logs but I currently manage my system via ssh and can't figure out how to copy the contents of the log (samba is broken and a whole other issue). I will keep on trying...
Posts: 228
Joined: Aug 2011
Reputation:
3
Some game on espn3 dont work but I went to espn3.com and they are all subject to blackout.
Posts: 1,432
Joined: May 2004
Reputation:
73
BlueCop
Skilled Python Coder
Posts: 1,432
I wrote some code in 0.9.3 to try to inform the user with a dialog box if the event is blacked out for them.
Did that show up? if it didn't could i get logs of the output so I can handle it.
I only found one video that was black out for me.
Posts: 132
Joined: Jul 2011
Reputation:
2
I had the SCRIPT ERROR too all i did is UNCHECK ENABLE COOKIES and its FIXED
thx a lot for this incredible high quality Addon
Posts: 1,432
Joined: May 2004
Reputation:
73
BlueCop
Skilled Python Coder
Posts: 1,432
2011-10-30, 03:42
(This post was last modified: 2011-10-30, 14:30 by BlueCop.)
There isn't an "ENABLE COOKIES" in the settings.
I am redoing settings.
I renamed "Clear Cookies" to "Get New User Files"
I also added a "Use Custom User Files" option which will use user files in a subdirectory "custom" in the plugins userdata directory. If this directory doesn't exist on first launch then it will create the directory and copy the current cookies.lwp and userdata.xml to it. The reason i am adding this is so people can test login code without losing current functionality with backup custom users files.
I also added an "Extended Network User" option which changes how playback authorizes the video links. It depends on your ip if you need this setting. If playback fails change this option. I am working on detecting the need for this.
the other option is still "Enable Login" which will attempt to login and grab user files if they don't exist already. If they exist then it won't do anything. You have to enable "Get New User Files" to replace any user files in place.
It will attempt to get anonymous user files if no user files exist and enable login is disabled. if you enable "Get New User Files" then it will attempt to get new ones even if they already exist.
I will try to commit it later with some better login handling.
Update:
Committed 0.9.4
Changes:
Added "Ask Quality" option which will display a list of bitrates to choose before playback.
Added the Setting Changes I detailed above
Added new icons for live, upcoming and replay.
If you want to keep backups of your current user files then enable "Use Custom User Files". It will backup your existing user files to the "custom" sub-directory for you if the directory doesn't exist. It will never try to replace or update the custom files.
If you have playback errors then try switching on/off "Extended Network User" in the settings