diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-11-20 02:11:00 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:12:34 +0200 |
commit | 472e0333c05207fef5cf13a0585a91fa78e233d9 (patch) | |
tree | b7836a0bd6745ed139de61a6f46b237fedbcd6d2 /plugins | |
parent | 718f9feb8de96be91748521ff52d802b34d5dc73 (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-x | plugins/manganelo.py | 4 | ||||
-rwxr-xr-x | plugins/readms.py | 4 |
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) |