mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 14:24:03 -07: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
1 changed files with 5 additions and 3 deletions
|
@ -1752,8 +1752,10 @@ class DailymotionIE(InfoExtractor):
|
||||||
|
|
||||||
mobj = re.search(r'(?im)<span class="owner[^\"]+?">[^<]+?<a [^>]+?>([^<]+?)</a></span>', webpage)
|
mobj = re.search(r'(?im)<span class="owner[^\"]+?">[^<]+?<a [^>]+?>([^<]+?)</a></span>', webpage)
|
||||||
if mobj is None:
|
if mobj is None:
|
||||||
self._downloader.trouble(u'ERROR: unable to extract uploader nickname')
|
video_uploader = "Unknown"
|
||||||
return
|
#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)
|
video_uploader = mobj.group(1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue