diff --git a/config b/config deleted file mode 100644 index dec8b374..00000000 --- a/config +++ /dev/null @@ -1,18 +0,0 @@ -[pixiv] -username = XXXXX -password = XXXXX - -[exhentai-cookies] -ipb_member_id = XXXXX -ipb_pass_hash = XXXXX - -[nijie-cookies] -NIJIEIJIEID = XXXXX -nijie_email_hash = XXXXX -nijie_login_hash = XXXXX - -[danbooru] -regex0 = d(?:anbooru)?[.:-_](\w.+) - -[gelbooru] -regex0 = g(?:elbooru)?[.:-_](\w.+) diff --git a/config.json b/config.json new file mode 100644 index 00000000..deba0cef --- /dev/null +++ b/config.json @@ -0,0 +1,39 @@ +{ + "base-directory": "/tmp/", + "extractor": + { + "pixiv": + { + "directory": ["{category}", "{artist-id}"], + "username": "XXX", + "password": "XXX" + }, + "nijie": + { + "cookies": + { + "NIJIEIJIEID": "XXX", + "nijie_email_hash": "XXX", + "nijie_login_hash": "XXX" + } + }, + "4chan": + { + "directory": ["{category}", "{board}", "{thread} - {title}"] + }, + "danbooru": + { + "pattern": ["d(?:anbooru)?[.:-_](\\w.+)"], + "filename": "{category}_{id:>07}_{md5}.{extension}" + }, + "gelbooru": + { + "pattern": ["g(?:elbooru)?[.:-_](\\w.+)"], + "filename": "{category}_{id:>07}_{md5}.{extension}" + }, + "e621": + { + "pattern": ["e(?:621)?[.:-_](\\w.+)"] + } + } +}