projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
74bc299
)
[extractor/common] Make _is_valid_url more relaxed
author
Sergey M․
<dstftw@gmail.com>
Wed, 2 Oct 2019 17:53:07 +0000
(
00:53
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 2 Oct 2019 17:53:07 +0000
(
00:53
+0700)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 85978661793a77411419d619f654a33755d23d4b..50d48c40dc61ffc872f97fd1f763d53363a52ec0 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-1424,12
+1424,10
@@
class InfoExtractor(object):
try:
self._request_webpage(url, video_id, 'Checking %s URL' % item, headers=headers)
return True
try:
self._request_webpage(url, video_id, 'Checking %s URL' % item, headers=headers)
return True
- except ExtractorError as e:
- if isinstance(e.cause, compat_urllib_error.URLError):
- self.to_screen(
- '%s: %s URL is invalid, skipping' % (video_id, item))
- return False
- raise
+ except ExtractorError:
+ self.to_screen(
+ '%s: %s URL is invalid, skipping' % (video_id, item))
+ return False
def http_scheme(self):
""" Either "http:" or "https:", depending on the user's preferences """
def http_scheme(self):
""" Either "http:" or "https:", depending on the user's preferences """