浏览代码

skip media when folder exists, even if empty

Nick Sweeting 6 年之前
父节点
当前提交
b8e5e1d5bd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      archivebox/archive_methods.py

+ 1 - 1
archivebox/archive_methods.py

@@ -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'}