projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7e5e830
)
[generic] Clarify error messages
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 6 Oct 2013 14:03:18 +0000
(16:03 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 6 Oct 2013 14:03:18 +0000
(16:03 +0200)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 764070635160d96487baa53b4370b28e8a957316..7060c6f9258c28c9dcb18681c62882f52715edf9 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-117,7
+117,7
@@
class GenericIE(InfoExtractor):
except ValueError:
# since this is the last-resort InfoExtractor, if
# this error is thrown, it'll be thrown here
except ValueError:
# since this is the last-resort InfoExtractor, if
# this error is thrown, it'll be thrown here
- raise ExtractorError(u'
Invali
d URL: %s' % url)
+ raise ExtractorError(u'
Failed to downloa
d URL: %s' % url)
self.report_extraction(video_id)
# Look for BrightCove:
self.report_extraction(video_id)
# Look for BrightCove:
@@
-149,12
+149,12
@@
class GenericIE(InfoExtractor):
# HTML5 video
mobj = re.search(r'<video[^<]*(?:>.*?<source.*?)? src="([^"]+)"', webpage, flags=re.DOTALL)
if mobj is None:
# HTML5 video
mobj = re.search(r'<video[^<]*(?:>.*?<source.*?)? src="([^"]+)"', webpage, flags=re.DOTALL)
if mobj is None:
- raise ExtractorError(u'
Invali
d URL: %s' % url)
+ raise ExtractorError(u'
Unsupporte
d URL: %s' % url)
# It's possible that one of the regexes
# matched, but returned an empty group:
if mobj.group(1) is None:
# It's possible that one of the regexes
# matched, but returned an empty group:
if mobj.group(1) is None:
- raise ExtractorError(u'
Invalid URL:
%s' % url)
+ raise ExtractorError(u'
Did not find a valid video URL at
%s' % url)
video_url = mobj.group(1)
video_url = compat_urlparse.urljoin(url, video_url)
video_url = mobj.group(1)
video_url = compat_urlparse.urljoin(url, video_url)