1
0
Fork 0
mirror of synced 2024-06-28 19:10:33 +12:00

hide frequent youtubedl incompatibility

This commit is contained in:
Nick Sweeting 2019-02-04 21:18:17 -08:00
parent fb00f1f336
commit 522b6288c1

View file

@ -533,7 +533,9 @@ def fetch_media(link_dir, link, timeout=MEDIA_TIMEOUT, overwrite=False):
if (b'ERROR: Unsupported URL' in result.stderr
or b'HTTP Error 404' in result.stderr
or b'HTTP Error 403' in result.stderr
or b'URL could be a direct video link' in result.stderr):
or b'URL could be a direct video link' in result.stderr
or b'Unable to extract container ID' in result.stderr):
# These happen too frequently on non-media pages to warrant printing to console
pass
else:
print(' got youtubedl response code {}:'.format(result.returncode))