mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 20:23:12 +00:00
hide common youtubedl failures
This commit is contained in:
parent
2b45792ad8
commit
756f31a50b
1 changed files with 4 additions and 1 deletions
|
@ -528,7 +528,10 @@ 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 or b'HTTP Error 404' in result.stderr:
|
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):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
print(' got youtubedl response code {}:'.format(result.returncode))
|
print(' got youtubedl response code {}:'.format(result.returncode))
|
||||||
|
|
Loading…
Reference in a new issue