diff options
author | Allan Zhou <allanzp@gmail.com> | 2013-09-03 12:22:29 -0700 |
---|---|---|
committer | Allan Zhou <allanzp@gmail.com> | 2013-09-03 12:22:29 -0700 |
commit | c3dd69eab40d1e006962a8a2b2ebc2dce94e1aec (patch) | |
tree | 84f78a6ca94748b1ea91679d5e5da6e830cd2844 /youtube_dl/extractor/dailymotion.py | |
parent | 85f03346ebe38c0b4cd46ab64bf9b5825d12895a (diff) | |
parent | c8dbccde30d9ca06d4c9305329a9aacd10420276 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'youtube_dl/extractor/dailymotion.py')
-rw-r--r-- | youtube_dl/extractor/dailymotion.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/dailymotion.py b/youtube_dl/extractor/dailymotion.py index 1ea449ca8..439033d23 100644 --- a/youtube_dl/extractor/dailymotion.py +++ b/youtube_dl/extractor/dailymotion.py @@ -55,7 +55,8 @@ class DailymotionIE(InfoExtractor): embed_url = 'http://www.dailymotion.com/embed/video/%s' % video_id embed_page = self._download_webpage(embed_url, video_id, u'Downloading embed page') - info = self._search_regex(r'var info = ({.*?}),', embed_page, 'video info') + info = self._search_regex(r'var info = ({.*?}),$', embed_page, + 'video info', flags=re.MULTILINE) info = json.loads(info) # TODO: support choosing qualities |