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)



- bharath23 - 2011-09-09

I am on comcast and it works on my laptop but through the plugin I get the following error similar to Tourney3p0

Code:
23:08:15 T:2844838800    INFO: -->Python script returned the following error<--
23:08:15 T:2844838800   ERROR: Error Type: <type 'exceptions.ValueError'>
23:08:15 T:2844838800   ERROR: Error Contents: invalid literal for int() with base 10: 'Highest'
23:08:15 T:2844838800   ERROR: Traceback (most recent call last):
                                              File "/root/.xbmc/addons/plugin.video.espn3/default.py", line 366, in <module>
                                                PLAY(url)
                                              File "/root/.xbmc/addons/plugin.video.espn3/default.py", line 232, in PLAY
                                                playpath = soup.findAll('video')[int(livequality)]['src']
                                            ValueError: invalid literal for int() with base 10: 'Highest'
23:08:15 T:2844838800    INFO: -->End of Python script error report<--



- ksosez - 2011-09-09

What version of XBMC and platform (and python version as well)
bharath23 Wrote:I am on comcast and it works on my laptop but through the plugin I get the following error similar to Tourney3p0

Code:
23:08:15 T:2844838800    INFO: -->Python script returned the following error<--
23:08:15 T:2844838800   ERROR: Error Type: <type 'exceptions.ValueError'>
23:08:15 T:2844838800   ERROR: Error Contents: invalid literal for int() with base 10: 'Highest'
23:08:15 T:2844838800   ERROR: Traceback (most recent call last):
                                              File "/root/.xbmc/addons/plugin.video.espn3/default.py", line 366, in <module>
                                                PLAY(url)
                                              File "/root/.xbmc/addons/plugin.video.espn3/default.py", line 232, in PLAY
                                                playpath = soup.findAll('video')[int(livequality)]['src']
                                            ValueError: invalid literal for int() with base 10: 'Highest'
23:08:15 T:2844838800    INFO: -->End of Python script error report<--



- myXBMC - 2011-09-09

for ATV2, I've been using XBMC official build June 23, 2011 with no problems.

I've just tested to use XBMC nightly build Sept 01, 2011 and encountered the following error on Live (same error for Replay - By Sport, Replay - Previous 10 Days, Upcoming)

Code:
10:24:29 T:149389312  NOTICE: URL: http://espn.go.com/espn3/player?id=226485&league=FIBA%20EuroBasket
10:24:29 T:149389312  NOTICE: Name: 0830AM EDT:Spain vs. Serbia (Second Round):BASKETBALL:FIBA EuroBasket
10:24:29 T:149389312  NOTICE: Play Video
10:24:29 T:149389312  NOTICE: http://espn.go.com/espn3/player?id=226485&league=FIBA%20EuroBasket
10:24:32 T:149389312  NOTICE: <smil>
                                             <head>
                                              <meta base="rtmp://cp88998.live.edgefcs.net/live/">
                                              </meta>
                                             </head>
                                             <body>
                                              <switch>
                                               <video src="espn3_c06_200@s20898" system-bitrate="200000">
                                               </video>
                                               <video src="espn3_c06_400@s20901" system-bitrate="400000">
                                               </video>
                                               <video src="espn3_c06_800@s20902" system-bitrate="800000">
                                               </video>
                                               <video src="espn3_c06_1200@s20903" system-bitrate="1200000">
                                               </video>
                                               <video src="espn3_c06_1800@s20904" system-bitrate="1800000">
                                               </video>
                                              </switch>
                                             </body>
                                            </smil>
10:24:32 T:149389312    INFO: -->Python script returned the following error<--
10:24:32 T:149389312   ERROR: Error Type: <type 'exceptions.ValueError'>
10:24:32 T:149389312   ERROR: Error Contents: invalid literal for int() with base 10: 'Highest'
10:24:32 T:149389312   ERROR: Traceback (most recent call last):
                                              File "/var/mobile/Library/Preferences/XBMC/addons/plugin.video.espn3/default.py", line 366, in <module>
                                                PLAY(url)
                                              File "/var/mobile/Library/Preferences/XBMC/addons/plugin.video.espn3/default.py", line 232, in PLAY
                                                playpath = soup.findAll('video')[int(livequality)]['src']
                                            ValueError: invalid literal for int() with base 10: 'Highest'
10:24:32 T:149389312    INFO: -->End of Python script error report<--
10:24:32 T:149389312    INFO: Python script stopped
10:24:32 T:149389312   DEBUG: Thread XBPyThread 149389312 terminating
10:24:32 T:124739584   DEBUG:  WaitOnScriptResult - plugin exited prematurely - terminating
10:24:32 T:124739584   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.espn3/?url=http%3A%2F%2Fespn.go.com%2Fespn3%2Fplayer%3Fid%3D226485%26league%3DFIBA%2520EuroBasket&mode=4&name=0830AM+EDT%3ASpain+vs.+Serbia+%28Second+Round%29%3ABASKETBALL%3AFIBA+EuroBasket]
10:24:32 T:124739584   DEBUG: Playlist Player: no more playable items... aborting playback



- bharath23 - 2011-09-09

ksosez Wrote:What version of XBMC and platform (and python version as well)

I am using a git xbmc-pvr build of Lars Op den Kamp compiled by Sam Nazarko , its a pre-eden with python 2.5. Sam is working on a newer build with python 2.6.


- rswarthout - 2011-09-10

Just installed this plugin and got this same error. A quick and easy way to fix this for the time being is to lock in the steam to always select the "highest" stream. As it works now, it is trying to select a stream quality that does not exist. Look in default.py for the following line. It is line 228 for me.

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

Change it to...

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

Start watching feed! :-D


- rswarthout - 2011-09-10

To fix the live feeds, make a similar change to line 232.

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

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



- bharath23 - 2011-09-10

Thanks rswarthout, editing it solved my problem. Probably something changed in espn3 interface changed and probably needs to be fixed in the plugin.


- eschberg - 2011-09-10

Been using this script for some time now, but when I tried this morning it's suddenly giving me a connection refusal. It works fine on my laptop, but not my main system and both default.py files are identical.

I've also tried to copy the entire plugin folder from my laptop to the main system thinking some file got corrupted somehow. No worky either.

I am using TWC and I updated it to the new hack posted a couple days ago and still no go. I've signed up for the 'remote access' on espn3 linking my TWC account so that I can watch it through a browser just fine. I'm at a loss here, can I get some help please?

Pastebin link... http://pastebin.com/Wp7getbr


- ksosez - 2011-09-10

eschberg Wrote:I am using TWC and I updated it to the new hack posted a couple days ago and still no go. I've signed up for the 'remote access' on espn3 linking my TWC account so that I can watch it through a browser just fine. I'm at a loss here, can I get some help please?

Pastebin link... http://pastebin.com/Wp7getbr

No idea...maybe a firewall issue? Watching stuff fine here.


- ksosez - 2011-09-10

bharath23 Wrote:I am using a git xbmc-pvr build of Lars Op den Kamp compiled by Sam Nazarko , its a pre-eden with python 2.5. Sam is working on a newer build with python 2.6.

I think 2.5 doesnt handle the string to integer conversion properly. Hopefully they will work on Python 2.6 because it seems to work there.


- eschberg - 2011-09-10

ksosez Wrote:No idea...maybe a firewall issue? Watching stuff fine here.


Just deleted appdata and re-installed XBMC. Working like a champ now. Color me confused.


- bpjmcg - 2011-09-10

Yeah if you have trouble with manually replacing the default.py with the one from this thread, you just need to uninstall the ESPN3 plugin, reinstall it, manually copy in the default.py before you use it for the first time and it should work. Had to do the same thing on both of my instances.


- hydog - 2011-09-10

bpjmcg Wrote:Yeah if you have trouble with manually replacing the default.py with the one from this thread, you just need to uninstall the ESPN3 plugin, reinstall it, manually copy in the default.py before you use it for the first time and it should work. Had to do the same thing on both of my instances.

I can confirm this did help my issue.....i was having similar issues - even after i replaced my default.py file last week - it stopped working when i got back from traveling....uninstall and re-copy did the trick..for whatever reason.


- bpjmcg - 2011-09-10

hunkyn Wrote:Would it be possible to update the add-on for watchespn? Seems like we can now get espn, espn2 and espnu also. This makes it easy for me not to switch between TV and xbmc for games Smile

Thanks in advance

+1 on this Smile


- jhernandez86 - 2011-09-10

Where do you place the Default.py on an appletv2?

What is the Path. I am using Cyberduck