aboutsummaryrefslogtreecommitdiff
path: root/plugins
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
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')
-rwxr-xr-xplugins/manganelo.py4
-rwxr-xr-xplugins/readms.py4
2 files changed, 4 insertions, 4 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)
diff --git a/plugins/readms.py b/plugins/readms.py
index 4a9674d..0ebbe13 100755
--- a/plugins/readms.py
+++ b/plugins/readms.py
@@ -58,7 +58,7 @@ def list_chapters(url, latest):
print(json.dumps({ "items": chapters }))
def download_chapter(url, download_dir):
- 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)
@@ -98,7 +98,7 @@ def download_chapter(url, download_dir):
url = "https://readms.net" + next_page
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)