1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-07 11:42:43 +01:00

[extractor/common] Relax valid url check verbosity

This commit is contained in:
Sergey M․ 2015-05-17 02:59:35 +06:00
parent 4d52f2eb7f
commit baa43cbaf0

View File

@ -786,8 +786,8 @@ def _is_valid_url(self, url, video_id, item='video'):
return True
except ExtractorError as e:
if isinstance(e.cause, compat_HTTPError):
self.report_warning(
'%s URL is invalid, skipping' % item, video_id)
self.to_screen(
'%s: %s URL is invalid, skipping' % (video_id, item))
return False
raise