1
0
mirror of https://github.com/ytdl-org/ytdl-nightly.git synced 2025-03-12 08:40:19 +01:00

[extractor/common] Output error for invalid URLs in _is_valid_url (refs , refs , refs , refs , refs , refs , refs )

This commit is contained in:
Sergey M․ 2020-11-18 23:31:35 +07:00
parent 5c3f7014ef
commit c7178f0f7a
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

@ -1456,9 +1456,10 @@ class InfoExtractor(object):
try:
self._request_webpage(url, video_id, 'Checking %s URL' % item, headers=headers)
return True
except ExtractorError:
except ExtractorError as e:
self.to_screen(
'%s: %s URL is invalid, skipping' % (video_id, item))
'%s: %s URL is invalid, skipping: %s'
% (video_id, item, error_to_compat_str(e.cause)))
return False
def http_scheme(self):