Link htpcBeginner.com Contest

How to fix script failed error and make XBMC ESPN addon work?

xbmc-espn-addon-error-ft
  • Share:
  • share htpcBeginnerShare on FacebookhtpcBeginner on Google+Tweet ItPrint this post

In the recent months the XBMC ESPN addon errors out with “script failed” error message as shown in the picture below. Using this ESPN plugin by bluecop is one of the 3 ways to watch ESPN on XBMC. Many users of the XBMC ESPN addon have reported “Script Failed!: plugin.video.espn3″, including on htpcBeginner. Football season is here (Go Buckeyes!) and it would be great to fix the script failed error message and get the XBMC ESPN addon to work. This plugin not only allows you to watch Live games but also go back and replay content from the past. This post describes the proper way to configure the XBMC ESPN plugin. This procedure has been verified to work in the latest version (0.9.9) of the plugin. [Read: 5 Websites to watch College Football online for free]

XBMC ESPN Addon Script Failed Error

XBMC Error Script Failed

Requirements

First, a minor clarification: even though the XBMC ESPN plugin has options for login and choosing channels (ESPN, ESPN2, etc.) the plugin only works for ESPN3. XBMC ESPN addon or XBMC ESPN3 addon both refer to the same plugin.

The main requirement for the XBMC ESPN plugin to work is a valid Time Warner Cable or Comcast username and password. Even though you will be watching ESPN through your internet, your account should also be subscribed to receive ESPN cable content. Once the procedure below is completed you do not need ESPN subscription nor the account login anymore as the cookie once set is valid for several years. If you do not subscribe to ESPN’s cable content, you may have good friends… ;-) ;-). [Read: Free Movies and TV shows bittorrent streaming with Popcorn Time]

Other requirements are:

  • Works only in US. You may use a VPN Service such Kepard to obtain an US IP Address.
  • On Linux, you need librtmp / rtmpdump version 2.4 or better. If you are using any of the latest releases, you should be fine.
  • Firefox with Cookie Manager plugin or Google Chrome with Edit This Cookie extension
  • Working XBMC installation

This post shows the procedure with Firefox and Cookie Manager addon but accomplishing the task with Chrome is just as easy.

Enjoy unlimited streaming of Movies and TV Shows on several devices, free 2-day shipping on orders, and free Kindle books for only $6.60 per month. Sign-up now to get a free 1-month trial.

1. Uninstall Existing ESPN XBMC Addon

First, uninstall the existing XBMC ESPN3 plugin. You can uninstall the plugin through XBMC interface or manually delete the following two folders:

The existing ESPN3 addon folder:

Windows:
C:/Users/UserName/AppData/Roaming/XBMC/addons/plugin.video.espn3

Linux:
/home/UserName/.xbmc/addons/plugin.video.espn3

and ESPN3 addon’s data folder:

Windows:
C:/Users/UserName/AppData/Roaming/XBMC/userdata/addon_data/plugin.video.espn3

Linux:
/home/UserName/.xbmc/userdata/addon_data/plugin.video.espn3

2. Get ESPN Cookie

Once you have all the requirements ready, visit WatchESPN website, login with your TWC or Comcast login, and start watching any of the live shows. [Read: How to setup Chromecast using your phone or tablet?]

WatchESPN Login

WatchESPN Login

Once the show starts playing, close the browser window and reopen browser. Go to Tools->Cookie Manager to open the Cookie Manager. You should know see a list of all the cookies that have been set in your browser.

Firefox ESPN Cookie

Firefox ESPN Cookie

Search for “swid” and you should only see one entry show up. Note down (or copy / save) everything that is listed under “Content”, including { and }. The whole thing should look something like this (your numbers / characters may vary):

{6xxxx-xxxxxxx-xxxxxx-xxxxxxxxx-xxxxxxxxxxxx2}

You will need this in the next step.

4 Popular standalone XBMC / Kodi media players:

  1. XIOS DS Media Play ULTRA SLIM Smart TV Companion w/802.11n Wifi, Ethernet, USB, HDMI
  2. G-Box Midnight Android 4 / Linux XBMC Streaming Mini HTPC TV Box Player
  3. KDLINKS HD700 Extreme FULL HD 3D Digital Media Player with Gigabit Network, Built-In Wifi, Youtube & Full ISO/VOB Support (Realtek 1186 3D)
  4. Raspberry Pi Model B Revision 2.0 (512MB)

3. Install the XBMC ESPN3 Addon

Kudos to Locomot1f for modifying the plugin to work with ESPN again. Visit the ESPN3 addon development page on GitHub and download the latest plugin as a zip file as shown in the picture below. [Read: 5 Best XBMC skins for Raspberry Pi]

XBMC ESPN Addon3 on GitHub

XBMC ESPN Addon on GitHub

After download, extract the zip file, and rename the “plugin.video.espn3-master” folder to “plugin.video.espn3″. Then move the “plugin.video.espn3″ folder to the following location:

Windows:
C:/Users/UserName/AppData/Roaming/XBMC/addons/

Linux:
/home/UserName/.xbmc/addons/

You have now installed the new XBMC ESPN3 plugin. Alternatively, you could choose to install the zip file through XBMC interface. Open and run the addon through XBMC once and try to play any video. The script may error out but that’s fine. [Read: 15 XBMC keyboard shortcuts you should know]

4. Create userdata.xml File

Next, navigate and find the XBMC ESPN addon data folder. Below are the typical locations in Windows and Linux platforms:

Windows:
C:/Users/UserName/AppData/Roaming/XBMC/userdata/addon_data/plugin.video.espn3

Linux:
/home/UserName/.xbmc/userdata/addon_data/plugin.video.espn3

Continued in next page

Ignore the settings.xml or videocache.xml files. This file will be automatically modified based on your configuration (described below). If userdata.xml already exists, rename it to userdata.backup.xml or something else. Then create a new userdata.xml file and copy the contents below to it. I suggest using Notepad++.

ESPN Addon userdata.xml for TWC

ESPN Addon userdata.xml for TWC (full text)

The above code is for TWC login. For Comcast login, replace the content between the affiliate tags (lines 3 to 8) with the following:

ESPN Addon Userdata for Comcast

ESPN Addon Userdata for Comcast (full text)

Here are the things that need to be changed:

  • XXX.XXX.XXX.XXX – Replace with your current IP Address
  • YYYYYYYY – Replace with your current city name (eg: chicago)
  • ZZZZZZZ – Replace with your current state name (eg: illinois)
  • DOMAIN.COM – Replace with your current internet provider’s domain. For TWC’s road runner internet it is rr.com. If you do not know your provider’s domain then visit this page and search by IP Address:

    network_solutions_ip_search

    You can find your domain in the results the display results. [Read: 10 of the Best XBMC Addons in 2014]

    network_solutions_whois_details

  • {6xxxx-xxxxxxx-xxxxxx-xxxxxxxxx-xxxxxxxxxxxx2} – Replace with your SWID determined in Step 1.

Note that you internet does not have to be from the same provider as the cable provider whose login details you used in Step 1. Consequently, in you may have one provider (the cable provider whose login you used) and in you may have the details from a different provider (current internet provider).

5. Configure ESPN Addon

Next configure the XBMC ESPN Addon properly to avoid the “script failed!: plugin.video.espn3″ error. It is important that you finish configuring the XBMC ESPN plugin before you open the addon or else your userdata.xml file may be overwritten by the addon. Go to Addon Settings and configure it as shown in the pictures below.

You may provide the login details under Login but you will not need to use it (notice that Login is disabled). Save and exit XBMC ESPN Addon Settings. Your settings.xml will be updated with the changes you made.

4 Popular standalone XBMC / Kodi media players:

  1. XIOS DS Media Play ULTRA SLIM Smart TV Companion w/802.11n Wifi, Ethernet, USB, HDMI
  2. G-Box Midnight Android 4 / Linux XBMC Streaming Mini HTPC TV Box Player
  3. KDLINKS HD700 Extreme FULL HD 3D Digital Media Player with Gigabit Network, Built-In Wifi, Youtube & Full ISO/VOB Support (Realtek 1186 3D)
  4. Raspberry Pi Model B Revision 2.0 (512MB)

6. Enjoy Watching ESPN on XBMC

You you may open the addon browse live events or go back and replay past content (based on your replay settings above).

Live Event from ESPN3

Live Event from ESPN3

Conclusions

Searching the internet, you will find that a lot of users have expressed difficulty getting this XBMC ESPN plugin to work. The most common issue is the “Script Failed!: plugin.video.espn3″ error. Hopefully this post provided you with clear instructions on how to get the plugin to work. Understand that even though plugin offers login options and more ESPN channel options (ESPN, ESPN2, ESPNU, etc.) they do not work and all my attempts so far have been futile. But ESPN3 works very well and you should have no problems watching Live content or replaying old content. So there you go. Enjoy watching ESPN using the XBMC ESPN addon.

Update (12/01/2013): Thanks to Lukeshow for sharing the latest fix for the XBMC ESPN Addon’s script failed error with me. I have tested the new fix and the addon now works perfectly for ESPN3 content.

Like this post? Share it and get Raspberry Pi OpenELEC Media Center 45-page eBook for Free!

Incoming Search Terms:

xbmc script failed error, xbmc script failed, XBMC ESPN3 Script Failed, xbmc error script failed, script errors on xbmc, how do u download genesis on xbmc tablet, script error xbmc, config wizard script failed, xbmc espn3 addon, xbmc live tv script failed

Comments

  1. Joel says

    Hmm… these instructions seem to be incomplete. I can’t download the mentioned default.py, and when I try to go to page 2 of the article, the server returns a 404

  2. lukeshow says

    Anand… you are the MAN! AND a Buckeye! Unfortunately, I still get the 404 error when trying to navigate to the second page.

  3. says

    I was really excited to find a recent article about how to get this to work, but unfortunately I’m still getting the script error as well. In the last step, you say notice that Login is disabled, but the only Login option I see (“Enable Login”) in the screenshots is enabled. Am I missing something? What about the cookies.lwp and settings.xml files? What should we do with those? Thanks for any insight you might be able to provide.

    • says

      Rob, I apologize for the discrepancy. I have updated the screenshot to show that login is disabled. This however, should not have any effect because, the plugin worked for me in both cases. Do not worry about any other files in the data folder. The only file you have to edit manually is the userdata.xml file. I have updated the post to clarify this.

      I noticed that there were unnecessary spaces added to the userdata.xml file code block by WordPress when I save the post. Not sure if this causes script error. Will test it this evening. In any case, I have replaced the codes with images and provider external links to userdata.xml and other code blocks. You may try it now by creating fresh userdata.xml by copy-pasting the codes from the new links. I suggest you uninstall the plugin and delete the data folder and start from scratch.

  4. lukeshow says

    Anand… I am still getting the error as well. Followed the directions in this article. Did a full uninstall of the ESPN plug-in (including deleting subfolders), reinstalled, then followed directions again, and still getting error!

    Thanks for your effort though, at least I have someone out there that’s trying to help me out with this!

    • says

      lukeshow, I am impressed with your perseverance. Please see my comment above. WordPress was adding unnecessary spaces to the my code blocks. So I have provided new links to the userdata.xml files. The only suggestion I have for you at this point is to start from scratch (again) and try to the new code blocks.

      By the way, are you able to login and watch live events at espn3.com or watchespn.com?

      • lukeshow says

        Redid everything again with the new text and I am still getting an error message. I can view videos on espn3 and watchespn, but get the “script failed” error on xbmc. Would you be willing to take a look at my userdata.xml to see if it’s set up correctly?

        • says

          Sure. Along with your userdata.xml let me know the following:

          1. What system (desktop/laptop/raspberry pi, etc.)
          2. What OS and release/version
          3. How did you install XBMC compile or executable file or repository
          4. Your internet provider name
          5. Your cable TV provider name (or the cable provider’s credentials you used to get the SWID)

          • lukeshow says

            1. Desktop
            2. Windows 7 64-bit
            3. Installed XBMC from an executable file
            4. Time Warner Cable (rr.com)
            5. Time Warner Cable

            What is the best way to send you the userdata.xml?

  5. john tento says

    any idea what could be causing this error? I believe I’ve followed the instructions to a “t” and did a fresh install…

    20:25:48 T:1960 NOTICE: –>Python Interpreter InitializedPython callback/script returned the following error<–
    – NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
    Error Type:
    Error Contents: ‘NoneType’ object is unsubscriptable
    Traceback (most recent call last):
    File “C:\Users\XXX\AppData\Roaming\XBMC\addons\plugin.video.espn3\default.py”, line 592, in
    PLAYESPN3(url)
    File “C:\Users\XXX\AppData\Roaming\XBMC\addons\plugin.video.espn3\default.py”, line 222, in PLAYESPN3
    PLAY(url,’n360′)
    File “C:\Users\XXX\AppData\Roaming\XBMC\addons\plugin.video.espn3\default.py”, line 253, in PLAY
    playedId = mediaFramework[‘playerid’]
    TypeError: ‘NoneType’ object is unsubscriptable
    –>End of Python script error report<–
    20:25:49 T:5296 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.espn3/?url=%26partnerContentId%3D1197417%26eventId%3D176-181203%26contentId%3D31069403&mode=4&name=Fluminense+vs.+Botafogo+%28SPA%29]
    20:25:49 T:5772 NOTICE: Thread Background Loader start, auto delete: false
    20:25:53 T:3108 NOTICE: Thread XBPyThread start, auto delete: false

  6. Mark Ezzell says

    Hi – I followed the steps as well and can get to the media. However, whenever i try and stream something i get a script error. Can I share my log, userdata and default.py data with you and see if you have any thoughts.

    XMBC is installed on a Raspberry Pi (running XBIAN)
    Completed all steps using Mozilla Firefox running on Windows 7 32 bit
    used notepad++ to edit files, winscp to transfer

  7. Mark says

    Any idea what may cause the stream to create a script error? I’m in the app and can select something to view but get a script error on everything i select (followed directions above and using XBIAN on Raspberry Pi)

    • says

      Mark, if you followed in the instructions and still could not get it to work then I have further ideas. But it seems that something has changed in the way ESPN delivers their content that has made the fix not work anymore. Other readers have reported the same problem. I will update the post.

  8. jamie says

    That actually got mine to half way work

    I get some streams from the replays, but nowhere near all. They work too.

    I can not get any live streams to work

  9. James says

    How would I get this done on an android system? I get the failed script error, but if you try navigating to watch ESPN using any of the browsers, it redirects to a link wanting you to download the app. I have the app installed on the device and I’m logged into it, if that helps.

  10. Scott says

    Why does the web browser come into play when using the XBMC ?
    If I want to use web browser then I would not install XBMC .

    Sounds cryptic for the beginner !

    • says

      ESPN addon needs the subscriber ID to work properly. There is only one way to get it – from the cookie set in your browser. Once you get the subscriber id and create the userdata.xml, you do not need the browser anymore and you can use the same userdata.xml on any other devices, even those that do not have a browser.

  11. loc says

    is this procedure still current as of sept 1, 2014? simply downloading the ESPN3 App from the xbmc repo allowed me to watch espn3 content (using rasp pi with raspbmc) that didnt require a log in, such as the Miami vs. Louisville football game from the sky cam. Of course the actual broadcast wasn’t even an option on the rasp pi like it was thru my laptop (mac). and under the options for the ESPN3 App in the video add-on settings there are only 2 options “Playback” and “Days.” will the above procedure fix it where there will be more options to enter in login information to watch more live events?

    thanks.

  12. ed says

    This still works for me to get ESPN3. As a paid subscriber to Time Warner, I wish I could make it work for ESPN and ESPN2. Personally this would free me from cable. Anyways hope they figure that out. As a side note, maybe getting XBMC to run android apks would allow you to do this? Not a programmer so no idea if this is even a possibility.

Trackbacks

Leave a Reply

Review our comments policy.

Get your free comments avatar.

.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current ye@r *