Skip to content

Commit

Permalink
Fix YouTube download problems (HTTP 400) (bug 1308)
Browse files Browse the repository at this point in the history
Thanks to Frank Banul on talk.maemo.org for the fix.
  • Loading branch information
thp committed Mar 25, 2011
1 parent 4f9949c commit fe87d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpodder/youtube.py
Expand Up @@ -64,7 +64,7 @@ def find_urls(page):
fmt_url_map = r4.group(1)
for fmt_url_encoded in fmt_url_map.split(','):
fmt_url = urllib.unquote(fmt_url_encoded)
fmt_url = fmt_url.replace('\\/', '/')
fmt_url = fmt_url.replace('\\/', '/').replace("\u0026", "&")
fmt_id, url = fmt_url.split('|', 2)
yield int(fmt_id), url

Expand Down

0 comments on commit fe87d34

Please sign in to comment.