1
0
Fork 0
mirror of synced 2024-07-03 13:30:28 +12:00

quieter media downloads

This commit is contained in:
Nick Sweeting 2019-02-04 20:03:06 -08:00
parent 4e5b466bb2
commit 9f5441c4f3

View file

@ -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 result = run(CMD, stdout=PIPE, stderr=PIPE, cwd=output, timeout=timeout + 1) # audio/audio.mp3
end() end()
if result.returncode: 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 pass
else: else:
print(' got youtubedl response code {}:'.format(result.returncode)) print(' got youtubedl response code {}:'.format(result.returncode))