From 9f5441c4f3c1d6e75e9a0fb8ebd118c3e667fabc Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 4 Feb 2019 20:03:06 -0800 Subject: [PATCH] quieter media downloads --- archivebox/archive_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/archive_methods.py b/archivebox/archive_methods.py index 27cd7e5a..fd4d246d 100644 --- a/archivebox/archive_methods.py +++ b/archivebox/archive_methods.py @@ -528,7 +528,7 @@ def fetch_media(link_dir, link, timeout=MEDIA_TIMEOUT, overwrite=False): result = run(CMD, stdout=PIPE, stderr=PIPE, cwd=output, timeout=timeout + 1) # audio/audio.mp3 end() if result.returncode: - if b'ERROR: Unsupported URL' in result.stderr: + if b'ERROR: Unsupported URL' in result.stderr or b'HTTP Error 404' in result.stderr: pass else: print(' got youtubedl response code {}:'.format(result.returncode))