Skip to content

Commit

Permalink
Merge pull request #111 from pieska/youtube-findurls
Browse files Browse the repository at this point in the history
fix regexp tp prevent failure if map is at the very end
  • Loading branch information
thp committed Nov 5, 2013
2 parents 545a8be + fb5c62e commit 38e2cf1
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 38e2cf1

Please sign in to comment.