Err msg: Script Failed: Plugin.video.youtube
#16
(2012-08-03, 23:31)cb80 Wrote: codeseven, same error here. I worked around it by changing YouTubeCore.py line 841 from

if res[i]:

to

if i < len(res) and res[i]:

And then I can play youtube videos. Not sure what other effects that change has though.

I had the same issue, this fixed it for me as well. Thanks!
#17
I know this support is for windows, but I went to mac support and I cannot find anything to help fix my youtube script error. Same like all of you are getting, I tried to edit lime 841 but the if statement is different. Can you look at my pastebin file and see if you can help me and I will share this with other in the mac support.


http://pastebin.com/VSRtN2Mn
#18
(2012-08-11, 16:27)Don_black Wrote: I know this support is for windows, but I went to mac support and I cannot find anything to help fix my youtube script error. Same like all of you are getting, I tried to edit lime 841 but the if statement is different. Can you look at my pastebin file and see if you can help me and I will share this with other in the mac support.


http://pastebin.com/VSRtN2Mn

Maybe you could try the same fix it looks you are already using the len function so it might be worth it to give this fix a shot. Especially since it seems to be doing similar things.
#19
Hello,

Had the same error as you guys but the code didn't match what was shown. To fix it I went to line 801 and just commented it out. It looks like this, "#data = re.findall('flashvars="(.*?)"', data)" with no parenthesis.

I guessed what to comment out as it was the same code you guys said to add (I never did add it, this was already there). Save code. Restart XBMC. Works fine so far. Hope this helps someone.
#20
in my case still not working with bigger playlist, only if i delete manual "commoncache.db" from /userdata/database, and then restart xbmc.
if i stop xvmc and try to start bigger playlist not wotking again until i delete that file and restart xvmc.
i thing all problem is from "common plugin cache" plugin because this one makes the "commoncache.db".

any help is goodSmile
#21
Guys, i've been doing all the above and nothing worked.
I'm running Eden with 3.1.0
modifying YouTubePlayer.py etc.

But I've found a thing that worked. Turn off the Firewall!!!!!!
[/align]
#22
How I solved this on Mac:

uninstalled the plugin
cd ~/Library/Application Support/XBMC/userdata/addon_data
rm -rf plugin.video.youtube/
reinstalled the plugin
configured plugin settings again
#23
Turning off the firewall worked for me too!! (nothing else on this thread did). Doesn't seem like a great solution though, does anybody know what port specifically to open?
#24
Same here! Any solution other thab complete shut off?
#25
Ive had this error for months now and Ive tried everything to solve it. It just doesnt work. Same thing with Vimeo, havent worked for ages either. Im curious to know why these havent been removed. Would be awesome if someone would want to start a new plugin project for Youtube since current one didnt even work well when it was usable. I know this is open source and complaining is contra-productive - but the functionality of this plugin is probably very central to the success of XBMC and currently these plugin only serve to harm XBMC and give it a bad reputation. I myself has been thinking about ditching XBMC for this very reason, men but I still like it and I would rather continue using it.
#26
Okay, I realize this is a dead thread, but, I'm having this same problem, but, in the version of the youtube plugin I'm running, there's no such line in the youtubeplayer.py...

Code:
298        for line in data.split("\n"):
299            if line.strip().startswith("var swf = \""):
300                found = True
301                p1 = line.find("=")
302                p2 = line.rfind(";")
303                if p1 <= 0 or p2 <= 0:
304                    continue
305                data = line[p1 + 1:p2]
306                break
#27
Probably will have better luck following or asking in this thread: http://forum.xbmc.org/showthread.php?tid=79487
#28
(2012-12-30, 01:33)artrafael Wrote: Probably will have better luck following or asking in this thread: http://forum.xbmc.org/showthread.php?tid=79487

Whoops, sorry.
#29
NEGATIVE CANT FIND CODE.

http://pastebin.com/8g565rZS

Here's Lines 298 to Line 306, there is no such script..........
_______________________________________________________
298 for line in data.split("\n"):
299 if line.strip().startswith("var swf = \""):
300 found = True
301 p1 = line.find("=")
302 p2 = line.rfind(";")
303 if p1 <= 0 or p2 <= 0:
304 continue
305 data = line[p1 + 1:p2]
306 break

HERE's the full script.
http://pastebin.com/fuq9gAtw

Please PM me back, thanks for your time
#30
See link in post #27 above for current discussion/status/fixes regarding this add-on.

Logout Mark Read Team Forum Stats Members Help
Err msg: Script Failed: Plugin.video.youtube0