This commit is contained in:
GitHub Merge Button 2012-04-23 10:16:11 -07:00
commit 66709e6857

View file

@ -1750,11 +1750,15 @@ class DailymotionIE(InfoExtractor):
video_title = sanitize_title(video_title) video_title = sanitize_title(video_title)
simple_title = _simplify_title(video_title) simple_title = _simplify_title(video_title)
mobj = re.search(r'(?im)<span class="owner[^\"]+?">[^<]+?<a [^>]+?>([^<]+?)</a></span>', webpage) spanowner = re.search(r'(?im)<span class="owner[^\"]+?">[^<]+?<a [^>]+?>([^<]+?)</a></span>', webpage)
spanname = re.search(r'(?im)<span class="name[^\"]+?"[^\>]+?>([^\>]+?)</span>', webpage)
mobj = spanowner if spanowner else spanname
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 and continue with the download
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