gallery-dl
gallery-dl copied to clipboard
[Danbooru] Prevents download whole source gallery.
Related to this: https://github.com/mikf/gallery-dl/issues/1747
Some source link don't specified the original gallery source link, but the artist galleries instead. It ended up downloads the whole artist gallery. For example, this one.
My suggestion is prevent it or an option to allow download or not.
Link example above aren't the only one. There are many.
There are blacklist & whitelist option to select which extractors can be spawned by another, but they could only differentiate between site names like patreon, pixiv, etc.
With https://github.com/mikf/gallery-dl/commit/010d65dcec69b181ce0454b7baa1647deb14fb67 it is now possible to also select by subcategory and use placeholders, so you can allow only single posts from all sites and reject everything major like user profiles or searches:
"whitelist": ["*:post", "*:image", "*:tweet", "*:work"]
This will only download from Patreon posts, but ignore the user profile link from your example above. Same with Twitter tweets and Pixiv artworks.
How to get this works on fanbox.cc?
Edit: specific site.
Edit 2: I figured it out. The docs explains whitelist and blacklist. Here's my configuration:
"danbooru": {
"blacklist": ["fanbox:creator"]
},
Extractors within its subcategory can be views on gallery-dl --list-extractors.