From 0a6a4956fe44ed77dba32ace075a185ac16a4ad3 Mon Sep 17 00:00:00 2001 From: jwansek Date: Sat, 7 May 2022 21:04:34 +0000 Subject: Changed the ISO ordering system --- services.py | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'services.py') diff --git a/services.py b/services.py index 51ab6a1..681c82a 100644 --- a/services.py +++ b/services.py @@ -18,12 +18,6 @@ import os theLastId = 0 -def get_isos(iso_dir): - print(os.path.exists(iso_dir)) - return [ - i for i in os.listdir(iso_dir) - ] - def humanbytes(B): 'Return the given bytes as a human friendly KB, MB, GB, or TB string' B = float(B) @@ -234,14 +228,8 @@ def link_deleted(url): return text[text.find("") + 7 : text.find("")] in ["Error | nitter", "イラストコミュニケーションサービス[pixiv]"] if __name__ == "__main__": - # sbi = get_random_image(["lio_fotia", "promare"]) - # print(sbi.tags) - # print(sbi.source) - # print(sbi.imurl) - # print(sbi.remove_tag("promare")) - - import configparser - CONFIG = configparser.ConfigParser() - CONFIG.read("edaweb.conf") - - print(get_isos(CONFIG.get("cds", "location"))) \ No newline at end of file + sbi = get_random_image(["lio_fotia", "promare"]) + print(sbi.tags) + print(sbi.source) + print(sbi.imurl) + print(sbi.remove_tag("promare")) -- cgit v1.2.3