From: Filippo Valsorda Date: Wed, 7 Nov 2012 13:44:10 +0000 (+0100) Subject: fix DailyMotion official users videos - closes #281 - by @yvestan X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=4cc391461ae5cb9f2626172426a10a146458aa96;p=youtube-dl.git fix DailyMotion official users videos - closes #281 - by @yvestan --- diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index a5c8b9134..cfaef2904 100644 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -694,7 +694,12 @@ class DailymotionIE(InfoExtractor): 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)