mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +01:00
change example-config to json
This commit is contained in:
parent
3c13548f29
commit
5ae3dd84ba
18
config
18
config
@ -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.+)
|
39
config.json
Normal file
39
config.json
Normal file
@ -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.+)"]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user