aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-03-02 22:38:44 +0600
committerSergey M․ <dstftw@gmail.com>2015-03-02 22:38:44 +0600
commit2f0f6578c3e4b82a5decc6f906a5f58b7b34c1a9 (patch)
tree4a84ffe05be69aebd57b61730b87b1d8ac7cddfd /youtube_dl/extractor
parent30cbd4e0d68361a20b036fc90bd53a8fa9a463dd (diff)
[extractor/common] Assume non HTTP(S) URLs valid
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/common.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 7977fa8d0..cf39c0c21 100644
--- 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