aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/dailymotion.py
diff options
context:
space:
mode:
authorAllan Zhou <allanzp@gmail.com>2013-09-03 12:22:29 -0700
committerAllan Zhou <allanzp@gmail.com>2013-09-03 12:22:29 -0700
commitc3dd69eab40d1e006962a8a2b2ebc2dce94e1aec (patch)
tree84f78a6ca94748b1ea91679d5e5da6e830cd2844 /youtube_dl/extractor/dailymotion.py
parent85f03346ebe38c0b4cd46ab64bf9b5825d12895a (diff)
parentc8dbccde30d9ca06d4c9305329a9aacd10420276 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'youtube_dl/extractor/dailymotion.py')
-rw-r--r--youtube_dl/extractor/dailymotion.py3
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