[extractor/common] Assume non HTTP(S) URLs valid

This commit is contained in:
Sergey M․ 2015-03-02 22:38:44 +06:00
parent 30cbd4e0d6
commit 2f0f6578c3

View file

@ -767,6 +767,10 @@ def _check_formats(self, formats, video_id):
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