gallery-dl: clean up config

Only define non-default values.
This commit is contained in:
Hoang Nguyen 2024-02-17 00:00:00 +07:00
parent fc531935fd
commit 7cea00ac14
Signed by: folliehiyuki
GPG Key ID: B0567C20730E9B11
1 changed files with 24 additions and 68 deletions

View File

@ -4,26 +4,13 @@
"base-directory": "~/Pictures/gallery-dl",
"image-unique": true,
"chapter-unique": true,
"cookies": null,
"cookies-update": true,
"date-format": "%Y-%m-%dT%H:%M:%S",
"fallback": true,
"path-extended": true,
"path-remove": "\u0000-\u001f\u007f",
"path-replace": "_",
"path-restrict": "unix",
"retries": 4,
"skip": true,
"timeout": 30.0,
"user-agent": "{{ user_agent }}",
"verify": true,
"mastodon": {
"filename": "{id}_{media[id]}.{extension}",
"directory": ["mastodon", "{account[acct]!l}"],
"reblogs": true,
"replies": true,
"text-posts": false,
"fosstodon.org": {
"root": "https://fosstodon.org"
}
@ -31,6 +18,8 @@
"nitter": {
"filename": "{tweet_id}_{num}.{extension}",
"directory": ["twitter", "{user[name]}"],
"quoted": true,
"videos": "ytdl",
"nitter.absturztau.be": {
"root": "https://nitter.absturztau.be"
}
@ -38,14 +27,9 @@
"pixiv": {
"filename": "{id}_p{num}.{extension}",
"directory": ["Pixiv", "{user[name]}-{user[id]}"],
"include": ["background", "artworks"],
"metadata": false,
"ugoira": true,
"include": ["background", "artworks", "avatar"],
"refresh-token": "{{ pixiv_refresh_token | default(None) }}",
"tags": "original",
"work": {
"related": false
}
"tags": "original"
},
"danbooru": {
"external": true,
@ -53,17 +37,11 @@
},
"artstation": {
"directory": ["ArtStation", "{user[username]}"],
"external": false
},
"deviantart": {
"directory": ["DeviantArt", "{author[username]}"],
"include": ["gallery", "scraps", "favorite"],
"extra": false,
"flat": true,
"journals": "text",
"mature": true,
"metadata": false,
"original": true
"include": ["gallery", "scraps", "favorite", "avatar"],
"journals": "text"
},
"mangadex": {
"lang": "en",
@ -73,80 +51,58 @@
"chapter-filter": "lang == 'en'",
"directory": ["Manga", "{manga}", "c{chapter}{chapter_minor}"]
},
"manganelo": {
"chapter-filter": "lang == 'en'",
"directory": ["Manga", "{manga}", "c{chapter}{chapter_minor} - {title}"]
},
"mangahere": {
"chapter-filter": "lang == 'en'",
"directory": ["Manga", "{manga}", "c{chapter}{chapter_minor} - {title}"]
},
"mangapark": {
"mangakakalot": {
"chapter-filter": "lang == 'en'",
"directory": ["Manga", "{manga}", "c{chapter}{chapter_minor} - {title}"]
},
"mangaread": {
"chapter-filter": "lang == 'en'",
"directory": ["Manga", "{manga}", "c{chapter}{chapter_minor}"]
},
"mangasee": {
"chapter-filter": "lang == 'en'",
"directory": ["Manga", "{manga}", "c{chapter}{chapter_minor}"]
},
"twitter": {
"videos": "ytdl",
"cards": "ytdl",
"cards-blacklist": ["summary", "youtube.com", "player:twitch.tv"],
"quoted": true,
"replies": true,
"pinned": true,
"twitpic": true,
"retweets": "original",
"syndication": "extended"
"csrf": "auto"
}
},
"postprocessors": [
{
"name": "zip",
"compression": "store",
"extension": "cbz",
"mode": "safe",
"keep-files": false,
"whitelist": ["mangadex", "mangafox", "manganelo", "mangahere", "mangapark"]
},
{
"name": "ugoira",
"extension": "webm",
"ffmpeg-demuxer": "mkvmerge"
"whitelist": ["mangadex", "mangafox", "mangahere", "mangakakalot", "mangaread", "mangasee"]
}
],
"downloader": {
"mtime": true,
"part": true,
"part-directory": "/tmp/gallery-dl/.download/",
"retries": 4,
"timeout": 8.0,
"verify": true,
"http": {
"adjust-extensions": true
},
"ytdl": {
"config-file": "{{ xdg_dir.config_home }}/yt-dlp/config",
"format": "bestvideo+bestaudio/best",
"module": "yt_dlp"
"format": "bestvideo+bestaudio/best"
}
},
"output": {
"mode": "color",
"shorten": "eaw",
"progress": true,
"logfile": {
"path": "{{ xdg_dir.data_home }}/gallery-dl/log.txt",
"mode": "w",
"path": "{{ xdg_dir.state_home }}/gallery-dl/gallery-dl.log",
"mode": "a",
"level": "debug",
"format-date": "%Y-%m-%d %H:%M:%S",
"format": "{asctime} {name} [{levelname}]: {message}"
},
"log": {
"level": "info",
"format": {
"debug": "\u001b[0;36m{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"
}
},
"unsupportedfile": {
"path": "{{ xdg_dir.data_home }}/gallery-dl/unsupported.txt",
"path": "{{ xdg_dir.state_home }}/gallery-dl/unsupported.txt",
"mode": "a",
"format": "{asctime} {message}",
"format-date": "%Y-%m-%d-%H-%M-%S"