projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c3f701
)
[extractor/common] Output error for invalid URLs in _is_valid_url (refs #21400, refs...
author
Sergey M․
<dstftw@gmail.com>
Wed, 18 Nov 2020 16:31:35 +0000
(23:31 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 18 Nov 2020 16:31:35 +0000
(23:31 +0700)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 021945a89e16c80262728a4a9a400674735389a7..0c9089674f78fd705b34d60b57b9bf282935b2e1 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-1456,9
+1456,10
@@
class InfoExtractor(object):
try:
self._request_webpage(url, video_id, 'Checking %s URL' % item, headers=headers)
return True
- except ExtractorError:
+ except ExtractorError
as e
:
self.to_screen(
- '%s: %s URL is invalid, skipping' % (video_id, item))
+ '%s: %s URL is invalid, skipping: %s'
+ % (video_id, item, error_to_compat_str(e.cause)))
return False
def http_scheme(self):