Dailymotion: fix user page URL

This commit is contained in:
Mort Yao 2014-02-10 02:16:03 +01:00
parent 59e505b5bc
commit 4ab7c50ec8

View File

@ -8,7 +8,7 @@ def dailymotion_download(url, output_dir = '.', merge = True, info_only = False)
"""Downloads Dailymotion videos by URL.
"""
id = match1(url, r'/video/([^\?]+)')
id = match1(url, r'/video/([^\?]+)') or match1(url, r'video=([^\?]+)')
embed_url = 'http://www.dailymotion.com/embed/video/%s' % id
html = get_content(embed_url)