projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30cbd4e
)
[extractor/common] Assume non HTTP(S) URLs valid
author
Sergey M․
<dstftw@gmail.com>
Mon, 2 Mar 2015 16:38:44 +0000
(22:38 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 2 Mar 2015 16:38:44 +0000
(22:38 +0600)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 7977fa8d00faa01e95665e347fda4c492ab91ec0..cf39c0c21ee570f7277aacc7ca560a1509afe855 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-767,6
+767,10
@@
class InfoExtractor(object):
formats)
def _is_valid_url(self, url, video_id, item='video'):
+ url = self._proto_relative_url(url, scheme='http:')
+ # For now assume non HTTP(S) URLs always valid
+ if not (url.startswith('http://') or url.startswith('https://')):
+ return True
try:
self._request_webpage(url, video_id, 'Checking %s URL' % item)
return True