diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2022-05-07 21:04:34 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2022-05-07 21:04:34 +0000 |
commit | 0a6a4956fe44ed77dba32ace075a185ac16a4ad3 (patch) | |
tree | 3e58629b7ec104c07f2d10581691ea6eddf62141 /services.py | |
parent | 022fa3780ad63b49cb50c1482aa1d598e27feac5 (diff) | |
download | eda.gay-0a6a4956fe44ed77dba32ace075a185ac16a4ad3.tar.gz eda.gay-0a6a4956fe44ed77dba32ace075a185ac16a4ad3.zip |
Changed the ISO ordering system
Diffstat (limited to 'services.py')
-rw-r--r-- | services.py | 22 |
1 files changed, 5 insertions, 17 deletions
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("<title>") + 7 : text.find("</title>")] 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")) |