1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00
gallery-dl/docs/gallery-dl-example.conf
2018-06-08 18:31:59 +02:00

155 lines
3.5 KiB
Plaintext

{
"extractor":
{
"base-directory": "~/gallery-dl/",
"archive": "~/gallery-dl/archive.sqlite3",
"proxy": "http://10.10.1.10:3128",
"pixiv":
{
"archive": "~/gallery-dl/archive-pixiv.sqlite3",
"filename": "{id}{num}.{extension}",
"directory": ["Pixiv", "Works", "{user[id]}"],
"username": "foo",
"password": "bar",
"postprocessors": [
{
"name": "classify",
"mapping": {
"images": ["jpg", "png", "gif"],
"ugoira": ["zip", "txt"]
}
},
{
"name": "zip",
"keep-files": true,
"compression": "store"
},
{
"name": "exec",
"async": false,
"command": ["echo", "\n{user[account]} - {id}"]
}
],
"favorite":
{
"directory": ["Pixiv", "Favorites", "{user[id]}"]
},
"bookmark":
{
"directory": ["Pixiv", "My Bookmarks"],
"username": "foo123",
"password": "bar123"
}
},
"exhentai":
{
"cookies":
{
"ipb_member_id": "12345",
"ipb_pass_hash": "1234567890abcdef"
},
"proxy":
{
"http": "http://10.10.1.10:8080",
"https": "https://10.10.1.10:443"
},
"filename": "{num:>04}_{name}.{extension}",
"directory": ["{category!c}", "{title}"],
"wait-min": 1.0,
"wait-max": 5.0
},
"mangadex":
{
"postprocessors": [{
"name": "zip",
"keep-files": false,
"compression": "zip"
}]
},
"flickr":
{
"access-token": "1234567890-abcdef",
"access-token-secret": "1234567890abcdef",
"size-max": 1920
},
"reddit":
{
"morecomments": true,
"date-min": "2017-01",
"date-format": "%Y-%m",
"recursion": 1
},
"sankaku":
{
"sleep": 2,
"wait-min": 5.0,
"wait-max": 5.0,
"cookies": "~/gallery-dl/cookies-sankaku.txt"
},
"tumblr":
{
"posts": "all",
"external": false,
"reblogs": false,
"inline": true,
"likes":
{
"posts": "video,photo,link",
"external": true,
"reblogs": true
}
}
},
"downloader":
{
"part-directory": "/tmp/.download/",
"rate": "1M",
"retries": 3,
"timeout": 8.5
},
"output":
{
"mode": "terminal",
"log": {
"format": "{name}: {message}",
"level": "info"
},
"logfile": {
"path": "~/gallery-dl/log.txt",
"mode": "w",
"level": "debug"
},
"unsupportedfile": {
"path": "~/gallery-dl/unsupported.txt",
"mode": "a",
"format": "{asctime} {message}",
"format-date": "%Y-%m-%d-%H-%M-%S"
}
},
"cache": {
"file": "~/gallery-dl/cache.sqlite3"
},
"netrc": true
}