mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 20:23:12 +00:00
skip media when folder exists, even if empty
This commit is contained in:
parent
901666bae6
commit
b8e5e1d5bd
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@ def fetch_media(link_dir, link, timeout=MEDIA_TIMEOUT, overwrite=False):
|
|||
|
||||
# import ipdb; ipdb.set_trace()
|
||||
output = os.path.join(link_dir, 'media')
|
||||
already_done = os.path.exists(output) and os.listdir(output)
|
||||
already_done = os.path.exists(output) # and os.listdir(output)
|
||||
if already_done and not overwrite:
|
||||
return {'output': 'media', 'status': 'skipped'}
|
||||
|
||||
|
|
Loading…
Reference in a new issue