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)



- rifken - 2011-09-03

So how would I go about creating a userdata file? I have a valid espn3 ISP and I can use a proxy to workaround my blackout issue. If I attempt to use my proxy my valid ISP isn't recognized as I would expect. Surely there is a way to enter my proxy information in to XBMC and use this plugin to access my local blacked out game tomorrow.

Any ideas?


Wow! - beschmid - 2011-09-03

All I can say is wow. That is very impressive. I switched from Windows 7 with Boxee which had an ESPN3 app and they couldn't figure out how to circumvent the Remote Access issue. I switched to XBMC Live and now with ESPN 3 I am so very excited! It will be a great saturday!!! Thank you guys for the great work!


- Gfunk117 - 2011-09-03

dahlSTROM Wrote:SOLVED IT! Finally. So what did I do?
I changed the script to point to a modified userData (that is on my server) with a SWID generated from the "Remote Access". Again, this should work for everyone as I'm outside the US myself.

Replace your default.py with the following:
http://www.mediafire.com/?lba8adb5iz5j839

Enjoy! :-)

All I can say is hands down to dahlSTROM. I watched my badgers replay today with zero problems and tomorrow should be great live action! Happy as can be!


- ganzuas76 - 2011-09-03

Working here. Great work!!!!!!


- locomot1f - 2011-09-03

@dahlSTROM -- Big Ups!!! Just in time for the US v. Costa Rica game.

Thanks for sharing! I love this community!


- shuneycutt - 2011-09-03

dahlSTROM Wrote:SOLVED IT! Finally. So what did I do?
I changed the script to point to a modified userData (that is on my server) with a SWID generated from the "Remote Access". Again, this should work for everyone as I'm outside the US myself.

Replace your default.py with the following:
http://www.mediafire.com/?lba8adb5iz5j839

Enjoy! :-)


Is it possible to clarify this? I assume we need to modify the default.py file you provided to point to a modified userData & SWID file.

What is a correct userData & SWID file to use?

Thanks


- emilsvennesson - 2011-09-03

No, simply replace your old default.py with the one I uploaded.


- shuneycutt - 2011-09-03

dahlSTROM Wrote:No, simply replace your old default.py with the one I uploaded.

Damn, I was hoping that wasn't the case. I replaced the default.py still getting a script error when trying to load a live or replay game.

Your default.py has the code below:

#Make identityPointId from userdata
userdata = 'http://broadband.espn.go.com/espn3/auth/userData'
html = get_html(userdata)
soup = Soup(html)
affiliateid = soup('name')[0].string
swid = soup('personalization')[0]['swid']
identityPointId = affiliateid+':'+swid

It looks like it isn't pointing to a local server to get the userdata.

I'm on Time Warner which is most likely the problem.


- slappula - 2011-09-03

Thanks ksosez and dahlSTROM! This is working fine for me on TWC in NC. So frustrated with them as a company. They're my new Blockbuster. Wife won't let me cut the cord because of sports & soap operas!

BTW- I don't quite understand what you did with the SWID. Is this something that will eventually be caught and 'fixed' by ESPN or will we be able to bypass TWC's stupidity indefinitely?


- Macpatto - 2011-09-03

dahlSTROM Wrote:No, simply replace your old default.py with the one I uploaded.


How the heck do I replace it on my Mac?.. I've tried going into

Applications-> XBMC-> Right Click--> Show package contents-> Resources-> XBMC- > addons.. but, cannot find anything there that host espn3.

Am I doing something wrong? any directions in how to would be glady received.
Thanks.


Live Stream quality - bigd - 2011-09-03

First off, great job on the plugin! It's the start of the football season and I'm happily watching games right now! Things look beautiful on an AppleTV2 Big Grin

When I first started using the plugin, I noticed that I could watch replay events no problem, but when I tried to use the Live stream, it would buffer a couple times, then quit. I know that I'm not the only one having this problem, from reading the posts on this thread. For me, it was indeed a bandwidth issue, so I went and looked at the default.py and found this bit of code:

Code:
#live selects stream quality
        #200000,400000,800000,1200000,1800000
        #     0,     1,     2,      3,      4
        #     Lowest, Low,   Medium,  High, Highest
        #Change the [4] to 0-4 to change the bitrate
        if 'ondemand' in rtmp:
            playpath = soup.findAll('video')[quality]['src']
            finalurl = rtmp+'/?'+auth+' playpath='+playpath
        elif 'live' in rtmp:
            playpath = soup.findAll('video')[4]['src']
            finalurl = rtmp+' live=1 playlist=1 subscribe='+playpath+' playpath='+playpath+'?'+auth

So you're only using the quality setting (which defaults to medium 800k) for on demand events, but for live events you're hard coding it to 4, which is 1800k. I have a 1.5meg(1500k) DSL connection, so obviously it's choking when trying to do an 1800k stream.

So, I changed that line in default.py from
Code:
playpath = soup.findAll('video')[4]['src']

to

Code:
playpath = soup.findAll('video')[3]['src']

to make it default from an 1800k stream, to a 1200k stream and voila, it works beautifully.

Was there a specific reason you hard coded the live stream to alwasy be 1800k and not use the quality setting? I know that 1.5meg DSL is a common connection speed, and everyone out there with under a 2mbit connection is going to choke whenever trying to do live streams.

For anyone who's having this problem and feel comfortable enough changing your default.py, that's the change you can make to fix the bandwidth problem on the live stream. Ideally, I think it should be modified to use the configurable quality setting.

Thanks again for all your hard work!


- shuneycutt - 2011-09-03

shuneycutt Wrote:Damn, I was hoping that wasn't the case. I replaced the default.py still getting a script error when trying to load a live or replay game.

Your default.py has the code below:

#Make identityPointId from userdata
userdata = 'http://broadband.espn.go.com/espn3/auth/userData'
html = get_html(userdata)
soup = Soup(html)
affiliateid = soup('name')[0].string
swid = soup('personalization')[0]['swid']
identityPointId = affiliateid+':'+swid

It looks like it isn't pointing to a local server to get the userdata.

I'm on Time Warner which is most likely the problem.

It's working! I reinstalled the plugin and reinstalled the default.py. Time Warner Cable in NC.

Love this plugin!


- emilsvennesson - 2011-09-04

If anyone with full access to watchESPN.com (for SportsCenter, ESPN-U and such) would mind sharing their details, please give me a PM. It would be great to integrate that aswell into this great addon.


- spencers - 2011-09-04

thanks for the file dahlSTROM. Fixed and working!


AppleTV1 script error - rtietjen - 2011-09-04

I've looked in the forum for anyone else reporting this, but I do not see anything recently.

On my Apple Tv Gen 1 I installed then plugin today and received a script error. Reading in the forum I found that I may need to update to a new nightly build, which I did to 20110902. I also updated the default.py to the file from dahlSTROM. Still no luck on the script error.

I've installed the plugin on a darma XBMC on mac and with the updated default.py it works which should rule out the SWID, but it still was not working on the apple tv gen 1.

Here is the debug log:
PHP Code:
19:16:31 T:63734272   DEBUGProcess The source file to load is /Users/frontrow/Library/Application Support/XBMC/addons/plugin.video.espn3/default.py
19
:16:31 T:63734272   DEBUGProcess Setting the Python path to /Users/frontrow/Library/Application Support/XBMC/addons/plugin.video.espn3:/Users/frontrow/Library/Application Support/XBMC/addons/script.module.cryptopy/lib:/Users/frontrow/Library/Application Support/XBMC/addons/script.module.demjson/lib:/Users/frontrow/Library/Application Support/XBMC/addons/script.module.simplejson/lib:/Users/frontrow/Library/Application Support/XBMC/addons/script.module.beautifulsoup/lib:/mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Resources/XBMC/addons/script.module.pil/lib:/Users/frontrow/Library/Application Support/XBMC/addons/script.module.mechanize/lib:/mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Resources/XBMC/addons/script.module.pysqlite/lib:/Applications/XBMC.app/Contents/Frameworks:/Applications/XBMC.app/Contents/Frameworks/lib/python26.zip:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/plat-darwin:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/plat-mac:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/plat-mac/lib-scriptpackages:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/lib-tk:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/lib-old:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/lib-dynload:/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/site-packages:
19:16:31 T:63734272   DEBUGProcess Entering source directory /Users/frontrow/Library/Application Support/XBMC/addons/plugin.video.espn3
19
:16:31 T:63734272   DEBUGInstantiating addon using automatically obtained id of "plugin.video.espn3" dependent on version 1.0 of the xbmc.python api
19
:16:32 T:63734272  NOTICEMode4
19
:16:32 T:63734272  NOTICEURLhttp://espn.go.com/espn3/player?id=226225&league=NCAAF
19:16:32 T:63734272  NOTICEName600PM EDT:Montana vsTennessee:FOOTBALL:NCAAF
19
:16:32 T:63734272  NOTICEPlay Video
19
:16:32 T:63734272  NOTICEhttp://espn.go.com/espn3/player?id=226225&league=NCAAF
19:16:32 T:63734272    INFO: -->Python script returned the following error<--
19:16:32 T:63734272   ERRORError Type: <class 'urllib2.URLError'>
19:16:32 T:63734272   ERRORError Contents: <urlopen error unknown url typehttps>
19:16:32 T:63734272   ERRORTraceback (most recent call last):
                                              
File "/Users/frontrow/Library/Application Support/XBMC/addons/plugin.video.espn3/default.py"line 380in <module>
                                                
PLAY(url)
                                              
File "/Users/frontrow/Library/Application Support/XBMC/addons/plugin.video.espn3/default.py"line 224in PLAY
                                                html 
get_html(authurl)
                                              
File "/Users/frontrow/Library/Application Support/XBMC/addons/plugin.video.espn3/default.py"line 283in get_html
                                                response 
urllib2.urlopen(req)
                                              
File "/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/urllib2.py"line 126in urlopen
                                                
return _opener.open(urldatatimeout)
                                              
File "/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/urllib2.py"line 391in open
                                                response 
self._open(reqdata)
                                              
File "/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/urllib2.py"line 414in _open
                                                
'unknown_open'req)
                                              
File "/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/urllib2.py"line 369in _call_chain
                                                result 
func(*args)
                                              
File "/Applications/XBMC.app/Contents/Frameworks/lib/python2.6/urllib2.py"line 1194in unknown_open
                                                raise URLError
('unknown url type: %s' type)
                                            
URLError: <urlopen error unknown url typehttps>
19:16:32 T:63734272    INFO: -->End of Python script error report<--
19:16:32 T:63734272    INFOPython script stopped
19
:16:32 T:63734272   DEBUGThread XBPyThread 63734272 terminating
19
:16:32 T:2684407808   DEBUG:  WaitOnScriptResult plugin exited prematurely terminating
19
:16:32 T:2684407808   ERRORPlaylist Playerskipping unplayable item0path [plugin://plugin.video.espn3/?url=http%3A%2F%2Fespn.go.com%2Fespn3%2Fplayer%3Fid%3D226225%26league%3DNCAAF&mode=4&name=600PM+EDT%3AMontana+vs.+Tennessee%3AFOOTBALL%3ANCAAF]
19:16:32 T:2684407808   DEBUGPlaylist Playerone or more items failed to play... aborting playback
19
:16:32 T:2684407808    INFOLoading skin fileDialogOK.xml 


Let me know if there is anything else I can do to troubleshoot this issue.

Thanks