mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04:00
quieter media downloads
This commit is contained in:
parent
4e5b466bb2
commit
9f5441c4f3
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue