2012-01-20, 18:47
Thanks Enigma83! I tried out your fix on v2.1.3 of the plugin running on Ubuntu 10.04. For me, it was actually line 302. I'll post some more context of the code so others may try this out, until an official fix is released.
Code before changes (YouTubePlayer.py)
Code after changes (YouTubePlayer.py)
Code before changes (YouTubePlayer.py)
Code:
else:
data = result
data = data[data.find('flashvars'):].replace("\n", "").replace("&", "&")
this line --> data = re.findall('="(ttsurl=.*?)"', data)
if len(data) > 0:
player_object = self._convertFlashVars(data[0])
Code after changes (YouTubePlayer.py)
Code:
else:
data = result
data = data[data.find('flashvars'):].replace("\n", "").replace("&", "&")
this line --> data = re.findall('flashvars="(.*?)"', data)
if len(data) > 0:
player_object = self._convertFlashVars(data[0])