2018-03-05 18:37:21 +01:00
|
|
|
{
|
|
|
|
"extractor":
|
|
|
|
{
|
2018-03-22 10:01:50 +01:00
|
|
|
"base-directory": "~/gallery-dl/",
|
2018-03-12 18:15:30 +01:00
|
|
|
"archive": "~/gallery-dl/archive.sqlite3",
|
|
|
|
"proxy": "http://10.10.1.10:3128",
|
2018-03-05 18:37:21 +01:00
|
|
|
|
2019-06-07 13:47:02 +02:00
|
|
|
"postprocessors": [
|
|
|
|
{
|
|
|
|
"name": "ugoira",
|
|
|
|
"whitelist": ["pixiv", "danbooru"],
|
|
|
|
"ffmpeg-twopass": true,
|
|
|
|
"ffmpeg-args": ["-c:v", "libvpx", "-crf", "4", "-b:v", "5000k", "-an"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "metadata",
|
|
|
|
"whitelist": ["danbooru", "yandere", "sankaku"],
|
|
|
|
"mode": "tags"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
|
2018-03-05 18:37:21 +01:00
|
|
|
"pixiv":
|
|
|
|
{
|
2018-03-12 18:15:30 +01:00
|
|
|
"archive": "~/gallery-dl/archive-pixiv.sqlite3",
|
|
|
|
|
|
|
|
"filename": "{id}{num}.{extension}",
|
|
|
|
"directory": ["Pixiv", "Works", "{user[id]}"],
|
|
|
|
|
|
|
|
"username": "foo",
|
|
|
|
"password": "bar",
|
|
|
|
|
|
|
|
"favorite":
|
2018-03-05 18:37:21 +01:00
|
|
|
{
|
2018-03-12 18:15:30 +01:00
|
|
|
"directory": ["Pixiv", "Favorites", "{user[id]}"]
|
2018-03-05 18:37:21 +01:00
|
|
|
},
|
2018-03-12 18:15:30 +01:00
|
|
|
|
2018-03-05 18:37:21 +01:00
|
|
|
"bookmark":
|
|
|
|
{
|
2018-03-12 18:15:30 +01:00
|
|
|
"directory": ["Pixiv", "My Bookmarks"],
|
|
|
|
|
|
|
|
"username": "foo123",
|
|
|
|
"password": "bar123"
|
2018-03-05 18:37:21 +01:00
|
|
|
}
|
|
|
|
},
|
2018-03-12 18:15:30 +01:00
|
|
|
|
|
|
|
"exhentai":
|
2018-03-05 18:37:21 +01:00
|
|
|
{
|
2018-03-12 18:15:30 +01:00
|
|
|
"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
|
2018-03-05 18:37:21 +01:00
|
|
|
},
|
2018-03-12 18:15:30 +01:00
|
|
|
|
2018-06-08 18:29:58 +02:00
|
|
|
"mangadex":
|
|
|
|
{
|
2020-02-07 23:21:44 +01:00
|
|
|
"chapter-filter": "lang == 'en'",
|
2018-06-08 18:29:58 +02:00
|
|
|
"postprocessors": [{
|
|
|
|
"name": "zip",
|
|
|
|
"keep-files": false,
|
|
|
|
"compression": "zip"
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
|
2018-03-05 18:37:21 +01:00
|
|
|
"flickr":
|
|
|
|
{
|
2018-03-12 18:15:30 +01:00
|
|
|
"access-token": "1234567890-abcdef",
|
|
|
|
"access-token-secret": "1234567890abcdef",
|
|
|
|
"size-max": 1920
|
2018-03-05 18:37:21 +01:00
|
|
|
},
|
2018-03-12 18:15:30 +01:00
|
|
|
|
|
|
|
"reddit":
|
2018-03-05 18:37:21 +01:00
|
|
|
{
|
2018-03-12 18:15:30 +01:00
|
|
|
"morecomments": true,
|
|
|
|
"date-min": "2017-01",
|
|
|
|
"date-format": "%Y-%m",
|
|
|
|
"recursion": 1
|
2018-03-05 18:37:21 +01:00
|
|
|
},
|
2018-03-12 18:15:30 +01:00
|
|
|
|
|
|
|
"sankaku":
|
2018-03-05 18:37:21 +01:00
|
|
|
{
|
2018-03-12 18:15:30 +01:00
|
|
|
"sleep": 2,
|
|
|
|
"wait-min": 5.0,
|
|
|
|
"wait-max": 5.0,
|
|
|
|
"cookies": "~/gallery-dl/cookies-sankaku.txt"
|
2018-03-05 18:37:21 +01:00
|
|
|
},
|
2018-03-12 18:15:30 +01:00
|
|
|
|
2018-03-05 18:37:21 +01:00
|
|
|
"tumblr":
|
|
|
|
{
|
2018-03-12 18:15:30 +01:00
|
|
|
"posts": "all",
|
|
|
|
"external": false,
|
|
|
|
"reblogs": false,
|
|
|
|
"inline": true,
|
|
|
|
|
|
|
|
"likes":
|
|
|
|
{
|
|
|
|
"posts": "video,photo,link",
|
|
|
|
"external": true,
|
|
|
|
"reblogs": true
|
|
|
|
}
|
2019-02-05 16:17:25 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
"mastodon":
|
|
|
|
{
|
|
|
|
"mastodon.xyz":
|
|
|
|
{
|
|
|
|
"access-token": "cab65529..."
|
|
|
|
},
|
|
|
|
"tabletop.social": {
|
|
|
|
"access-token": "513a36c6..."
|
|
|
|
},
|
|
|
|
|
|
|
|
"directory": ["mastodon", "{instance}", "{account[username]!l}"],
|
|
|
|
"filename": "{id}_{media[id]}.{extension}"
|
|
|
|
},
|
|
|
|
|
|
|
|
"foolslide": {
|
|
|
|
"otscans": {"root": "https://otscans.com/foolslide"},
|
|
|
|
"helvetica": {"root": "https://helveticascans.com/r" }
|
|
|
|
},
|
|
|
|
|
|
|
|
"foolfuuka": {
|
|
|
|
"fireden-onion": {"root": "http://ydt6jy2ng3s3xg2e.onion"},
|
|
|
|
"scalearchive": {"root": "https://archive.scaled.team" }
|
2018-03-05 18:37:21 +01:00
|
|
|
}
|
|
|
|
},
|
2018-03-12 18:15:30 +01:00
|
|
|
|
2018-03-22 10:01:50 +01:00
|
|
|
"downloader":
|
|
|
|
{
|
|
|
|
"part-directory": "/tmp/.download/",
|
|
|
|
"rate": "1M",
|
|
|
|
"retries": 3,
|
|
|
|
"timeout": 8.5
|
|
|
|
},
|
|
|
|
|
2018-03-05 18:37:21 +01:00
|
|
|
"output":
|
|
|
|
{
|
2018-03-12 18:15:30 +01:00
|
|
|
"mode": "terminal",
|
implement logging options
Standard logging to stderr, logfiles, and unsupported URL files (which
are now handled through the logging module) can now be configured by
setting their respective option keys (log, logfile, unsupportedfile)
to a dict and specifying the following options;
- format:
format string for logging messages
available keys: see [1]
default: "[{name}][{levelname}] {message}"
- format-date:
format string for {asctime} fields in logging messages
available keys: see [2]
default: "%Y-%m-%d %H:%M:%S"
- level:
the lowercase levelname until which the logger should activate;
available levels are debug, info, warning, error, exception
default: "info"
- path:
path of the file to be written to
- mode:
'mode' argument when opening the specified file
can be either "w" to truncate the file or "a" to append to it (see [3])
If 'output.log', '.logfile', or '.unsupportedfile' is a string, it will
be interpreted, as it has been, as the filepath
(or as format string for .log)
[1] https://docs.python.org/3/library/logging.html#logrecord-attributes
[2] https://docs.python.org/3/library/time.html#time.strftime
[3] https://docs.python.org/3/library/functions.html#open
2018-05-01 17:54:52 +02:00
|
|
|
"log": {
|
2019-06-21 19:56:09 +02:00
|
|
|
"level": "info",
|
|
|
|
"format": {
|
|
|
|
"debug" : "\u001b[0;37m{name}: {message}\u001b[0m",
|
|
|
|
"info" : "\u001b[1;37m{name}: {message}\u001b[0m",
|
|
|
|
"warning": "\u001b[1;33m{name}: {message}\u001b[0m",
|
|
|
|
"error" : "\u001b[1;31m{name}: {message}\u001b[0m"
|
|
|
|
}
|
implement logging options
Standard logging to stderr, logfiles, and unsupported URL files (which
are now handled through the logging module) can now be configured by
setting their respective option keys (log, logfile, unsupportedfile)
to a dict and specifying the following options;
- format:
format string for logging messages
available keys: see [1]
default: "[{name}][{levelname}] {message}"
- format-date:
format string for {asctime} fields in logging messages
available keys: see [2]
default: "%Y-%m-%d %H:%M:%S"
- level:
the lowercase levelname until which the logger should activate;
available levels are debug, info, warning, error, exception
default: "info"
- path:
path of the file to be written to
- mode:
'mode' argument when opening the specified file
can be either "w" to truncate the file or "a" to append to it (see [3])
If 'output.log', '.logfile', or '.unsupportedfile' is a string, it will
be interpreted, as it has been, as the filepath
(or as format string for .log)
[1] https://docs.python.org/3/library/logging.html#logrecord-attributes
[2] https://docs.python.org/3/library/time.html#time.strftime
[3] https://docs.python.org/3/library/functions.html#open
2018-05-01 17:54:52 +02:00
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
2018-03-22 10:01:50 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
"cache": {
|
|
|
|
"file": "~/gallery-dl/cache.sqlite3"
|
|
|
|
},
|
|
|
|
|
|
|
|
"netrc": true
|
2018-03-05 18:37:21 +01:00
|
|
|
}
|