From 4cc391461ae5cb9f2626172426a10a146458aa96 Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Wed, 7 Nov 2012 14:44:10 +0100 Subject: [PATCH] fix DailyMotion official users videos - closes #281 - by @yvestan --- youtube_dl/InfoExtractors.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index a5c8b91341..cfaef29045 100644 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -694,7 +694,12 @@ def _real_extract(self, url): video_uploader = u'NA' mobj = re.search(r'(?im)[^<]+?]+?>([^<]+?)', webpage) if mobj is None: - self._downloader.trouble(u'WARNING: unable to extract uploader nickname') + # lookin for official user + mobj_official = re.search(r'', webpage) + if mobj_official is None: + self._downloader.trouble(u'WARNING: unable to extract uploader nickname') + else: + video_uploader = mobj_official.group(1) else: video_uploader = mobj.group(1)