From 522b6288c1c8a99106eaa830bd8d75bef14b09ba Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 4 Feb 2019 21:18:17 -0800 Subject: [PATCH] hide frequent youtubedl incompatibility --- archivebox/archive_methods.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/archivebox/archive_methods.py b/archivebox/archive_methods.py index 7938d0ad..14583545 100644 --- a/archivebox/archive_methods.py +++ b/archivebox/archive_methods.py @@ -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))