- gallery-dl.conf contains all config options set to their default values, with the exception of 'filename', 'directory', and 'cache.file' - gallery-dl-example.conf contains a potential real-world configuration file and demonstrates some more involved optionspull/81/head
parent
5f37d40a3e
commit
74c8f83056
@ -1,136 +1,111 @@
|
|||||||
{
|
{
|
||||||
"base-directory": "/tmp/",
|
"base-directory": "~/gallery-dl/",
|
||||||
"netrc": false,
|
"netrc": true,
|
||||||
|
|
||||||
|
"cache": {
|
||||||
|
"file": "~/gallery-dl/cache.sqlite3"
|
||||||
|
},
|
||||||
|
|
||||||
"downloader":
|
"downloader":
|
||||||
{
|
{
|
||||||
"part": true,
|
"part-directory": "/tmp/.download/",
|
||||||
"part-directory": null,
|
"rate": "1M",
|
||||||
"http":
|
"retries": 3,
|
||||||
{
|
"timeout": 8.5
|
||||||
"rate": null,
|
|
||||||
"retries": 5,
|
|
||||||
"timeout": 30,
|
|
||||||
"verify": true
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"extractor":
|
"extractor":
|
||||||
{
|
{
|
||||||
"archive": null,
|
"archive": "~/gallery-dl/archive.sqlite3",
|
||||||
"proxy": null,
|
"proxy": "http://10.10.1.10:3128",
|
||||||
"skip": true,
|
|
||||||
"sleep": 0,
|
|
||||||
|
|
||||||
"pixiv":
|
"pixiv":
|
||||||
{
|
{
|
||||||
"user":
|
"archive": "~/gallery-dl/archive-pixiv.sqlite3",
|
||||||
|
|
||||||
|
"filename": "{id}{num}.{extension}",
|
||||||
|
"directory": ["Pixiv", "Works", "{user[id]}"],
|
||||||
|
|
||||||
|
"username": "foo",
|
||||||
|
"password": "bar",
|
||||||
|
|
||||||
|
"favorite":
|
||||||
{
|
{
|
||||||
"directory": ["{category}", "{user[id]}"]
|
"directory": ["Pixiv", "Favorites", "{user[id]}"]
|
||||||
},
|
},
|
||||||
|
|
||||||
"bookmark":
|
"bookmark":
|
||||||
{
|
{
|
||||||
"directory": ["{category}", "my bookmarks"]
|
"directory": ["Pixiv", "My Bookmarks"],
|
||||||
},
|
|
||||||
"ugoira": true,
|
"username": "foo123",
|
||||||
"username": null,
|
"password": "bar123"
|
||||||
"password": null
|
|
||||||
},
|
|
||||||
"batoto":
|
|
||||||
{
|
|
||||||
"username": null,
|
|
||||||
"password": null
|
|
||||||
},
|
|
||||||
"exhentai":
|
|
||||||
{
|
|
||||||
"wait-min": 3,
|
|
||||||
"wait-max": 6,
|
|
||||||
"original": true,
|
|
||||||
"username": null,
|
|
||||||
"password": null,
|
|
||||||
"cookies": {
|
|
||||||
"igneous": null,
|
|
||||||
"s": null,
|
|
||||||
"yay": "louder"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nijie":
|
|
||||||
{
|
"exhentai":
|
||||||
"username": null,
|
|
||||||
"password": null
|
|
||||||
},
|
|
||||||
"sankaku":
|
|
||||||
{
|
|
||||||
"wait-min": 2,
|
|
||||||
"wait-max": 4,
|
|
||||||
"username": null,
|
|
||||||
"password": null
|
|
||||||
},
|
|
||||||
"seiga":
|
|
||||||
{
|
|
||||||
"username": null,
|
|
||||||
"password": null
|
|
||||||
},
|
|
||||||
"gelbooru":
|
|
||||||
{
|
|
||||||
"filename": "{category}_{id:>07}_{md5}.{extension}",
|
|
||||||
"api": true
|
|
||||||
},
|
|
||||||
"reddit":
|
|
||||||
{
|
{
|
||||||
"refresh-token": null,
|
"cookies":
|
||||||
"comments": 500,
|
{
|
||||||
"morecomments": false,
|
"ipb_member_id": "12345",
|
||||||
"date-min": 0,
|
"ipb_pass_hash": "1234567890abcdef"
|
||||||
"date-max": 253402210800,
|
},
|
||||||
"date-format": "%Y-%m-%dT%H:%M:%S",
|
|
||||||
"id-min": "0",
|
"proxy":
|
||||||
"id-max": "ZIK0ZJ",
|
{
|
||||||
"recursion": 0
|
"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
|
||||||
},
|
},
|
||||||
|
|
||||||
"flickr":
|
"flickr":
|
||||||
{
|
{
|
||||||
"access-token": null,
|
"access-token": "1234567890-abcdef",
|
||||||
"access-token-secret": null,
|
"access-token-secret": "1234567890abcdef",
|
||||||
"metadata": false,
|
"size-max": 1920
|
||||||
"size-max": null
|
|
||||||
},
|
},
|
||||||
"deviantart":
|
|
||||||
{
|
"reddit":
|
||||||
"refresh-token": null,
|
|
||||||
"flat": true,
|
|
||||||
"mature": true,
|
|
||||||
"original": true
|
|
||||||
},
|
|
||||||
"gfycat":
|
|
||||||
{
|
{
|
||||||
"format": "mp4"
|
"morecomments": true,
|
||||||
|
"date-min": "2017-01",
|
||||||
|
"date-format": "%Y-%m",
|
||||||
|
"recursion": 1
|
||||||
},
|
},
|
||||||
"imgur":
|
|
||||||
|
"sankaku":
|
||||||
{
|
{
|
||||||
"mp4": true
|
"sleep": 2,
|
||||||
|
"wait-min": 5.0,
|
||||||
|
"wait-max": 5.0,
|
||||||
|
"cookies": "~/gallery-dl/cookies-sankaku.txt"
|
||||||
},
|
},
|
||||||
|
|
||||||
"tumblr":
|
"tumblr":
|
||||||
{
|
{
|
||||||
"posts": "photo",
|
"posts": "all",
|
||||||
"inline": false,
|
"external": false,
|
||||||
"reblogs": true,
|
"reblogs": false,
|
||||||
"external": false
|
"inline": true,
|
||||||
},
|
|
||||||
"recursive":
|
"likes":
|
||||||
{
|
{
|
||||||
"blacklist": ["directlink", "oauth", "recursive", "test"]
|
"posts": "video,photo,link",
|
||||||
},
|
"external": true,
|
||||||
"oauth":
|
"reblogs": true
|
||||||
{
|
}
|
||||||
"browser": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"output":
|
"output":
|
||||||
{
|
{
|
||||||
"mode": "auto",
|
"mode": "terminal",
|
||||||
"shorten": true,
|
"logfile": "~/gallery-dl/log.txt"
|
||||||
"progress": true,
|
|
||||||
"logfile": null,
|
|
||||||
"unsupportedfile": null
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue