mirror of
https://github.com/l1ving/youtube-dl
synced 2024-11-25 20:22:57 +08:00
fix DailyMotion official users videos - closes #281 - by @yvestan
This commit is contained in:
parent
bf95333e5e
commit
4cc391461a
@ -694,7 +694,12 @@ class DailymotionIE(InfoExtractor):
|
|||||||
video_uploader = u'NA'
|
video_uploader = u'NA'
|
||||||
mobj = re.search(r'(?im)<span class="owner[^\"]+?">[^<]+?<a [^>]+?>([^<]+?)</a>', webpage)
|
mobj = re.search(r'(?im)<span class="owner[^\"]+?">[^<]+?<a [^>]+?>([^<]+?)</a>', webpage)
|
||||||
if mobj is None:
|
if mobj is None:
|
||||||
self._downloader.trouble(u'WARNING: unable to extract uploader nickname')
|
# lookin for official user
|
||||||
|
mobj_official = re.search(r'<span rel="author"[^>]+?>([^<]+?)</span>', webpage)
|
||||||
|
if mobj_official is None:
|
||||||
|
self._downloader.trouble(u'WARNING: unable to extract uploader nickname')
|
||||||
|
else:
|
||||||
|
video_uploader = mobj_official.group(1)
|
||||||
else:
|
else:
|
||||||
video_uploader = mobj.group(1)
|
video_uploader = mobj.group(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user