Description
Manually adding certain custom domains to the list of gallery-dl's recognized URLs is possible since version 1.17.0, but hasn't been documented anywhere except in the commit message of 595bdaa4.
To describe this functionality:
gallery-dl can support any site that fits into one of its "basecategories" (gelbooru_v01, gelbooru_v02, moebooru, philomena, foolfuuka, foolslide, mastodon, shopify). Several sub-sites are already supported by default (see the bottom entries in supportedsites.md), but it is also possible to get it to recognize even more with the right config entries.
The general way is to add a new entry with arbitrary name (this will be used as category) inside a block named after the basecategory, which in turn is inside the "extractor" block. These entries must specify the root URL for this site, and can optionally set a custom pattern that gets used to match the site's domain. pattern must not contain a capture group.
For example the following would add support for two additional Gelbooru Beta 0.1.11 sites as well as two Shopify instances in addition to what is already supported by default:
{
"extractor": {
"gelbooru_v01": {
"rozenmaidenbooru": {"root": "http://rm.booru.org"},
"azureblade" : {"root": "https://tab.booru.org"}
},
"shopify": {
"hiutdenim": {"root": "https://hiutdenim.co.uk"},
"ptfoods" : {"root": "https://partakefoods.com",
"pattern": "(?:www\\.)?partakefoods\\.com"}
}
}
}
This could definitely be described / documented in a better, easier to understand way, but I'm not very good at this. So if anyone could help with improving this, I'd be much obliged. I'm also not entirely sure where this information should go. Maybe in the Configuration section of the README? Maybe as its very own section below Authentication?