Переглянути джерело

Handle already existing files with different formats

If multiple formats are requested, still download new formats when the
first one already exists.
Felix Schlinke 1 рік тому
батько
коміт
3c2cb2d8bb
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      zeitdownload.py

+ 1 - 1
zeitdownload.py

@@ -90,7 +90,7 @@ for fmt in formats:
 
     if os.path.exists(filename) and not forcereload:
         print("File already exits. If you want to download anyway, use --reload")
-        sys.exit(-1)
+        continue
 
     print(f"Downloading {fmt} from {link}...")
     response = s.get("https://epaper.zeit.de" + link