mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-10 17:27:21 +08:00
Fix for "unable to extract uploader nickname" when the class="owner" does not exists. This field is not required to download the video
This commit is contained in:
parent
0c24eed73a
commit
2b8ee7c239
@ -1752,9 +1752,11 @@ class DailymotionIE(InfoExtractor):
|
||||
|
||||
mobj = re.search(r'(?im)<span class="owner[^\"]+?">[^<]+?<a [^>]+?>([^<]+?)</a></span>', webpage)
|
||||
if mobj is None:
|
||||
self._downloader.trouble(u'ERROR: unable to extract uploader nickname')
|
||||
return
|
||||
video_uploader = mobj.group(1)
|
||||
video_uploader = "Unknown"
|
||||
#you need to use -i option to discard this error
|
||||
self._downloader.trouble(u'WARNING: unable to extract uploader nickname')
|
||||
else:
|
||||
video_uploader = mobj.group(1)
|
||||
|
||||
try:
|
||||
# Process video information
|
||||
|
Loading…
x
Reference in New Issue
Block a user