1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 23:07:16 +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:
Pierre-Yves Langlois 2012-04-23 12:16:09 -04:00
parent 0c24eed73a
commit 2b8ee7c239

View File

@ -1752,9 +1752,11 @@ 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
video_uploader = mobj.group(1) self._downloader.trouble(u'WARNING: unable to extract uploader nickname')
else:
video_uploader = mobj.group(1)
try: try:
# Process video information # Process video information