2012-01-20, 09:41
If you don't understand this, and something breaks, it's not my fault.
On line 303 in YouTubePlayer.py, changing ttsurl to fexp fixes things for me. ttsurl is referred to later on as well, lines 334/335 but I did not have to change those.
303c303
< data = re.findall('="(ttsurl=.*?)"', data)
---
> data = re.findall('="(fexp=.*?)"', data)
Edit: Should point out, I've been mucking about with this a bit, so it might be on a line "around" 303, but not on 303 exactly.
Edit: Doesn't work on all clips. For the people who can follow programming logic, don't search for "ttsurl", search for
on line 303 (or thereabouts)
303c303
< data = re.findall('="(ttsurl=.*?)"', data)
---
> data = re.findall('flashvars="(.*?)"', data)
On line 303 in YouTubePlayer.py, changing ttsurl to fexp fixes things for me. ttsurl is referred to later on as well, lines 334/335 but I did not have to change those.
303c303
< data = re.findall('="(ttsurl=.*?)"', data)
---
> data = re.findall('="(fexp=.*?)"', data)
Edit: Should point out, I've been mucking about with this a bit, so it might be on a line "around" 303, but not on 303 exactly.
Edit: Doesn't work on all clips. For the people who can follow programming logic, don't search for "ttsurl", search for
Code:
flashvars="(.*?)"
303c303
< data = re.findall('="(ttsurl=.*?)"', data)
---
> data = re.findall('flashvars="(.*?)"', data)