Skip to content

Commit

Permalink
regexp fails if url_encoded_fmt_stream_map is first argument
Browse files Browse the repository at this point in the history
  • Loading branch information
pieska committed Oct 16, 2013
1 parent 88e6539 commit 724467a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpodder/youtube.py
Expand Up @@ -111,7 +111,7 @@ def get_real_download_url(url, preferred_fmt_ids=None):
# Try to find the best video format available for this video
# (http://forum.videohelp.com/topic336882-1800.html#1912972)
def find_urls(page):
r4 = re.search('.*&url_encoded_fmt_stream_map=([^&]+)&.*', page)
r4 = re.search('url_encoded_fmt_stream_map=([^&]+)&.*', page)
if r4 is not None:
fmt_url_map = urllib.unquote(r4.group(1))
for fmt_url_encoded in fmt_url_map.split(','):
Expand Down

0 comments on commit 724467a

Please sign in to comment.