From 472e0333c05207fef5cf13a0585a91fa78e233d9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 20 Nov 2019 02:11:00 +0100 Subject: Hide tracking files session_id, finished and in_progress files should be hidden (start with a dot). Also remove deprecated "downloaded" file. --- plugins/manganelo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/manganelo.py') diff --git a/plugins/manganelo.py b/plugins/manganelo.py index 36f1daa..531fa8d 100755 --- a/plugins/manganelo.py +++ b/plugins/manganelo.py @@ -63,7 +63,7 @@ def download_chapter(url, download_dir): print("Failed to list chapters, server responded with status code %d" % response.status_code) exit(2) - in_progress_filepath = os.path.join(download_dir, "in_progress") + in_progress_filepath = os.path.join(download_dir, ".in_progress") with open(in_progress_filepath, "w") as file: file.write(url) @@ -78,7 +78,7 @@ def download_chapter(url, download_dir): exit(1) img_number += 1 - with open(os.path.join(download_dir, "finished"), "w") as file: + with open(os.path.join(download_dir, ".finished"), "w") as file: file.write("1") os.remove(in_progress_filepath) -- cgit v1.2.3