From 659ac544210db0677cd47ede8f44d584ff21d7bf Mon Sep 17 00:00:00 2001 From: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com> Date: Sat, 28 Mar 2026 23:08:45 +0500 Subject: [PATCH] remove accidently committed file --- tmp.py | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 tmp.py diff --git a/tmp.py b/tmp.py deleted file mode 100644 index 9142f8e5d..000000000 --- a/tmp.py +++ /dev/null @@ -1,41 +0,0 @@ - -import html -import os -import json - - -#apks = [apk for apk in os.listdir("apk")] -apks = set([ - "tachiyomi-all.ehentai-v1.4.27.apk", - "tachiyomi-all.hitomi-v1.4.41.apk", - "tachiyomi-all.nhentai-v1.4.56.apk", - "tachiyomi-all.pururin-v1.4.10.apk", - "tachiyomi-en.hentai20-v1.4.39.apk", - "tachiyomi-en.hentai2read-v1.4.18.apk" -]) - -index = json.load(open("index.json", "r")) - -for i in index: - if i["apk"] in apks: - print(i["apk"]) - index.remove(i) - - - -json.dump(index, open("index.json", "w"), ensure_ascii=False, indent=2) - -for item in index: - for source in item["sources"]: - source.pop("versionId", None) - -json.dump(index, open("index.min.json", "w"), ensure_ascii=False, separators=(",", ":")) - -with open("index.html", "w", encoding="utf-8") as index_html_file: - index_html_file.write('\n\n
\n\n\n')
- for entry in index:
- apk_escaped = 'apk/' + html.escape(entry["apk"])
- name_escaped = html.escape(entry["name"])
- index_html_file.write(f'{name_escaped}\n')
- index_html_file.write('\n\n\n')
-
\ No newline at end of file