Help - Search - Members - Calendar
Full Version: Fix For Youtube Plugin
Scenyx Entertainment Community > Xbox1 Forums > Software Forums > XBMC for Xbox Forums > XBMC Python Scripting Forum
cool_jr256
Took me a bit to find this as I'm fresh of the boat when it comes to python.

Since I'm not the owner of the plugin, I will not submit the fixed plugin myself,but here is how to fix it yourself:

If you have the plugin already installed but it is not streaming/downloading videos, here is what you do:

Step 1:

ftp to your xbox and retrieve the 'videos.py'
(on my box it's located here: /E/Apps/XBMC/plugins/video/YouTube/resources/libs)

Step 2:

Edit the 'videos.py' file. Now here is a warning, since most edit in windows, make sure you edit it either in Wordpad or an editor that can convert to DOS format. I cannot stress the importance (and yes indentations matter). If for some reason the indentation does not match, plugin will fail.

Since we're only replacing one line, should not be a problem.

Step 3:

search for the following:

CODE
video_name_re = re.compile(r'[,{]t:\'([^\']*)\'')


Step 4:

when you find it, replace it with this:

CODE
video_name_re = re.compile('[&]t=(.+?)[&].*\';')


Step 5:

Save the changes and ftp the newly modified 'videos.py' back to it's proper location.

Step 6:

Make some popcorn, fire up the YouTube plugin and watch away!!!!

Cheers
alf4_n1n54
I just use Navi-X
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.