This update contains some significant changes, and I recommend creating a backup of your HDoujin Downloader folder before updating, just in case. If you have any problems, let me know, and you can always downgrade to an earlier release here.
From this release onward, I’m switching to a CalVer versioning scheme (YYYY.MM.DD.Build). Given the nature of HDoujin Downloader as software that requires frequent updates, I think the release date is more valuable information than an arbitrary version number.
This update addresses various site issues, as well as problems related to Cloudflare’s “I’m Under Attack” mode. I’ll be releasing more module updates throughout the day, but I wanted to make this update available first, since it also fixes problems with module synchronization.
Some of the more popular sites have been fixed with this release, and more will be fixed throughout the day. The Cloudflare challenge bypass procedure has been updated, and now uses either Firefox or Google Chrome to solve the challenge (depending on what you have installed). The “cf-tool.exe” binary has already been updated (now called “cloudscraper.exe” for clarity) and can optionally be enabled instead under “Tools > Preferences”, but it will fail for some users.
If you’re finding the challenge isn’t being solved, review your Cloudflare settings and try unchecking the “Headless” setting. This will allow you to solve a captcha to bypass the challenge if necessary. I aiming am to make this scenario less likely to occur with future updates.
“Options” has been moved from “File > Options” to “Tools > Preferences”. Likewise, “Site Options” has been moved to “Tools > Site Preferences”.
Preferences are now organized into nested sections and are fully searchable.
Formatting string improvements
This release contains more formatting string improvements based on feedback I received from the last update. There are four new tokens: %GID%, which corresponds to the gallery ID in any context, as well as %PUBLISHER%, %CONVENTION%, and %MAGAZINE%. These are not yet implemented for all sites, so let me know if you come across an instance where they are not working as expected.
Previously, numeric values could be padded with 0s using specific tokens such as %PAGE1%, %PAGE10%, %PAGE100%, %PAGE1000%, etc. This has now been generalized so that you can apply an arbitrary amount of padding to any numeric value. This is achieved by adding an argument to the token. For example, %PAGE100% is equivalent to %PAGE(000)%. The number of 0s corresponds to the total length of the padded string.
You can find a new, detailed formatting string guide here.
I wanted to add support for themes with this release, and basic theme support is there. You can now style most parts of the interface using CSS. I have not included any themes by default at the moment, because this feature is currently in its infancy and there are some visual bugs here and there. However, you’re welcome to experiment with it and I can provide an example style sheet upon request.
You can view the full changelog here. The next goal is to upload some more module updates, and then start working on improving metadata-related features as well as working on more feature requests.
If you have any problems with this release, let me know, and you can always downgrade by downloading an older version from the releases page.