Kodi Community Forum
[RELEASE] ESPN3.com Addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] ESPN3.com Addon (/showthread.php?tid=95053)



- BlueCop - 2011-11-01

yes it will try to load the cookies file. if it doesn't exist then it will probably fail.


- beschmid - 2011-11-01

BlueCop Wrote:yes it will try to load the cookies file. if it doesn't exist then it will probably fail.

So I am creating the cookies.lwp file again. Now in the settings, do I enter the login info or leave it blank (shouldn't be any reason to do this right?)? Then what do I enable?


- BlueCop - 2011-11-01

if you are using custom files then just use the sub-directory custom in addon data directory. you can then just tick "Use Custom User Files". I explained all this before in the posts I linked to.

If you have a login then try to use the login code with the "Use Custom User Files" disabled. If it fails then send complete logs to me via email. I need to know the failure.


- ronmcse - 2011-11-01

if someone has a spare min, could you kindly catch me up to par? I opened up XBMC this morning and my ESPN3 changed to ESPN, but when I try to go into the plugin, I get a script error. I haven't watched it in a couple of weeks. About a Month ago i edited one of the files and entered in my TWC information and It was working then.


- BlueCop - 2011-11-01

just read. the links to the relevant posts are just above yours.


Script Error - beschmid - 2011-11-05

bluecop:

I have both userdata.xml and cookies.lwp in the folder,

/home/brad/.xbmc/userdata/addon_data/plugin.video.espn3/custom

I created these files using your instructions while logged into and watching a stream. In the setting for espn3 I have enabled both "Extended Network User" and "Use custom user Files" (I have also tried it with enabling only one or the other and it script errors). Nothing else is enabled in the settings.

Unfortunately I can't figure out how post entire logs. I am doing all this through ssh. Here is the section of the xbmc.log file showing the error.

20:41:25 T:2860514160 NOTICE: Play Video
20:41:25 T:2860514160 NOTICE: ESPN3: get_html: http://espn.go.com/watchespn/player/config
20:41:25 T:2860514160 INFO: -->Python script returned the following error<--
20:41:25 T:2860514160 ERROR: Error Type: <type 'exceptions.TypeError'>
20:41:25 T:2860514160 ERROR: Error Contents: expected string or buffer
20:41:25 T:2860514160 ERROR: Traceback (most recent call last):
File "/home/brad/.xbmc/addons/plugin.video.espn3/default.py", line 572, in <module>
PLAYESPN3(url)
File "/home/brad/.xbmc/addons/plugin.video.espn3/default.py", line 210, in PLAYESPN3
PLAY(url,'n360')
File "/home/brad/.xbmc/addons/plugin.video.espn3/default.py", line 234, in PLAY
networks = BeautifulStoneSoup(data, convertEntities=BeautifulStoneSoup.HTML_ENTITIES).find('networks').findAll('network')
File "/home/brad/.xbmc/addons/script.module.beautifulsoup/lib/BeautifulSoup.py", line 1144, in __init__
self._feed(isHTML=isHTML)
File "/home/brad/.xbmc/addons/script.module.beautifulsoup/lib/BeautifulSoup.py", line 1168, in _feed
smartQuotesTo=self.smartQuotesTo, isHTML=isHTML)
File "/home/brad/.xbmc/addons/script.module.beautifulsoup/lib/BeautifulSoup.py", line 1770, in __init__
self._detectEncoding(markup, isHTML)
File "/home/brad/.xbmc/addons/script.module.beautifulsoup/lib/BeautifulSoup.py", line 1915, in _detectEncoding
'^<\?.*encoding=[\'"](.*?)[\'"].*\?>').match(xml_data)
TypeError: expected string or buffer
20:41:25 T:2860514160 INFO: -->End of Python script error report<--
20:41:25 T:2860514160 INFO: Python script stopped
20:41:25 T:2860514160 DEBUG: Thread XBPyThread 2860514160 terminating
20:41:25 T:12320224 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
20:41:25 T:12320224 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.espn3/?url=%26partnerContentId%3D294499%26eventId%3D176-14809%26contentId%3D19973721&mode=4&name=USC+vs.+Colorado]
20:41:25 T:12320224 DEBUG: Playlist Player: one or more items failed to play... aborting playback


- WildBill - 2011-11-05

beschmid Wrote:bluecop:

I have both userdata.xml and cookies.lwp in the folder,

/home/brad/.xbmc/userdata/addon_data/plugin.video.espn3/custom

I created these files using your instructions while logged into and watching a stream. In the setting for espn3 I have enabled both "Extended Network User" and "Use custom user Files" (I have also tried it with enabling only one or the other and it script errors). Nothing else is enabled in the settings.

Unfortunately I can't figure out how post entire logs. I am doing all this through ssh. Here is the section of the xbmc.log file showing the error.

20:41:25 T:2860514160 NOTICE: Play Video
20:41:25 T:2860514160 NOTICE: ESPN3: get_html: http://espn.go.com/watchespn/player/config
20:41:25 T:2860514160 INFO: -->Python script returned the following error<--
20:41:25 T:2860514160 ERROR: Error Type: <type 'exceptions.TypeError'>
20:41:25 T:2860514160 ERROR: Error Contents: expected string or buffer
20:41:25 T:2860514160 ERROR: Traceback (most recent call last):
File "/home/brad/.xbmc/addons/plugin.video.espn3/default.py", line 572, in <module>
PLAYESPN3(url)
File "/home/brad/.xbmc/addons/plugin.video.espn3/default.py", line 210, in PLAYESPN3
PLAY(url,'n360')
File "/home/brad/.xbmc/addons/plugin.video.espn3/default.py", line 234, in PLAY
networks = BeautifulStoneSoup(data, convertEntities=BeautifulStoneSoup.HTML_ENTITIES).find('networks').findAll('network')
File "/home/brad/.xbmc/addons/script.module.beautifulsoup/lib/BeautifulSoup.py", line 1144, in __init__
self._feed(isHTML=isHTML)
File "/home/brad/.xbmc/addons/script.module.beautifulsoup/lib/BeautifulSoup.py", line 1168, in _feed
smartQuotesTo=self.smartQuotesTo, isHTML=isHTML)
File "/home/brad/.xbmc/addons/script.module.beautifulsoup/lib/BeautifulSoup.py", line 1770, in __init__
self._detectEncoding(markup, isHTML)
File "/home/brad/.xbmc/addons/script.module.beautifulsoup/lib/BeautifulSoup.py", line 1915, in _detectEncoding
'^<\?.*encoding=[\'"](.*?)[\'"].*\?>').match(xml_data)
TypeError: expected string or buffer
20:41:25 T:2860514160 INFO: -->End of Python script error report<--
20:41:25 T:2860514160 INFO: Python script stopped
20:41:25 T:2860514160 DEBUG: Thread XBPyThread 2860514160 terminating
20:41:25 T:12320224 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
20:41:25 T:12320224 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.espn3/?url=%26partnerContentId%3D294499%26eventId%3D176-14809%26contentId%3D19973721&mode=4&name=USC+vs.+Colorado]
20:41:25 T:12320224 DEBUG: Playlist Player: one or more items failed to play... aborting playback

To make espn work for me was to NOT have anything check and edit the userdata file with only the SWID and afflateID


- BlueCop - 2011-11-05

beschmid: are you within the us? it seems it can't retrieve the player config file. I am not sure why. can you download http://espn.go.com/watchespn/player/config in a browser?


- beschmid - 2011-11-05

BlueCop Wrote:beschmid: are you within the us? it seems it can't retrieve the player config file. I am not sure why. can you download http://espn.go.com/watchespn/player/config in a browser?

yes I am in the US, and yes the xml file appears.


- beschmid - 2011-11-05

WildBill Wrote:To make espn work for me was to NOT have anything check and edit the userdata file with only the SWID and afflateID

wildbill: are you accessing it via Remote Access?


- BlueCop - 2011-11-05

check your cookies file. it is either is failing to load it or choking processing it.


- beschmid - 2011-11-05

WildBill Wrote:To make espn work for me was to NOT have anything check and edit the userdata file with only the SWID and afflateID

wildbill: are you accessing espn3 via Remote Access?


- WildBill - 2011-11-05

beschmid Wrote:wildbill: are you accessing espn3 via Remote Access?
yep


- BlueCop - 2011-11-05

if the cookies aren't needed for remote access playback then i can disable the use of them. It is used when you retrieve your userdata file because it checks the swid cookie to populate the field in the xml file. I was using them for the other go.com domain requests but i guess it doesn't check for them if people are using it like wildbill says.


- beschmid - 2011-11-05

BlueCop Wrote:check your cookies file. it is either is failing to load it or choking processing it.

bluecop: the cookies.lwp file has the swid and provider info in locations specified in post #571.