Skip to content

Commit cf226f4

Browse files
committedApr 1, 2010
Fix YouTube format detection (bug 967)
1 parent 55deea0 commit cf226f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/gpodder/youtube.py

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ def get_real_download_url(url, preferred_fmt_id=18):
5656
# Try to find the best video format available for this video
5757
# (http://forum.videohelp.com/topic336882-1800.html#1912972)
5858
r3 = re.compile('.*"fmt_map"\:\s+"([^"]+)".*').search(page)
59+
if not r3:
60+
r3 = re.compile('&fmt_map=([^&]+).*').search(page)
61+
5962
if r3:
6063
formats_available = urllib.unquote(r3.group(1)).split(',')
6164
else:

0 commit comments

Comments
 (0)