aboutsummaryrefslogtreecommitdiff
path: root/plugins/manganelo.py
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-11-20 02:11:00 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:12:34 +0200
commit472e0333c05207fef5cf13a0585a91fa78e233d9 (patch)
treeb7836a0bd6745ed139de61a6f46b237fedbcd6d2 /plugins/manganelo.py
parent718f9feb8de96be91748521ff52d802b34d5dc73 (diff)
Hide tracking files
session_id, finished and in_progress files should be hidden (start with a dot). Also remove deprecated "downloaded" file.
Diffstat (limited to 'plugins/manganelo.py')
-rwxr-xr-xplugins/manganelo.py4
1 files changed, 2 insertions, 2 deletions
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)