1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 03:32:05 +00:00

[extractor/common] Test URLs with GET

This commit is contained in:
Sergey M? 2015-02-17 22:31:35 +06:00 committed by Sergey M․
parent 7010577720
commit 4069766c52

View file

@ -753,9 +753,7 @@ class InfoExtractor(object):
def _is_valid_url(self, url, video_id, item='video'): def _is_valid_url(self, url, video_id, item='video'):
try: try:
self._request_webpage( self._request_webpage(url, video_id, 'Checking %s URL' % item)
HEADRequest(url), video_id,
'Checking %s URL' % item)
return True return True
except ExtractorError as e: except ExtractorError as e:
if isinstance(e.cause, compat_HTTPError): if isinstance(e.cause, compat_HTTPError):