2014-11-15, 21:34
(2014-11-15, 13:38)redviolet Wrote: VEVO problem is caused by a change in the way google generates signatures.
This code is the one creating a signature now, and current YoutubePlayer.py parser doesn't catch it.
Code:a.set("signature",cr(c));return a
This patch works for me, but further feedback will be welcome, especially if you can come up with a better regexp.
Code:--- a/YouTubePlayer.py
+++ b/YouTubePlayer.py
@@ -467,7 +467,7 @@ class YouTubePlayer():
return ''
# get main function name
- match = re.search("signature=([$a-zA-Z]+)\([^)]\)", playerData)
+ match = re.search("set..signature..([$a-zA-Z]+)\([^)]\)", playerData)
if match:
mainFunName = match.group(1)
Confirmed. Thanks!!!