Jump to content


Photo

Fix For Youtube Plugin


  • Please log in to reply
1 reply to this topic

#1 cool_jr256

cool_jr256

    X-S Enthusiast

  • Members
  • 5 posts

Posted 06 March 2008 - 05:12 AM

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

#2 alf4_n1n54

alf4_n1n54

    X-S Member

  • Members
  • Pip
  • 86 posts

Posted 07 March 2008 - 02:33 AM

I just use Navi-X




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users