mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
chmod media after downloading
This commit is contained in:
parent
756f31a50b
commit
637f63dc80
1 changed files with 2 additions and 0 deletions
|
@ -526,6 +526,8 @@ def fetch_media(link_dir, link, timeout=MEDIA_TIMEOUT, overwrite=False):
|
||||||
end = progress(timeout, prefix=' ')
|
end = progress(timeout, prefix=' ')
|
||||||
try:
|
try:
|
||||||
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
|
||||||
|
chmod_file('media', cwd=link_dir)
|
||||||
|
output = 'media'
|
||||||
end()
|
end()
|
||||||
if result.returncode:
|
if result.returncode:
|
||||||
if (b'ERROR: Unsupported URL' in result.stderr
|
if (b'ERROR: Unsupported URL' in result.stderr
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue