A custom downloader plugin for LANraragi designed to fetch manga from Wnacg and automatically package them into ZIP files.
- Full Auto-Download: Supports direct ZIP extraction or image list fetching from Wnacg URLs.
- Intelligent Re-compression: Automatically downloads the official ZIP and re-compresses it using Deflate algorithm to ensure optimal file size and structure.
- Full Title Extraction: Automatically scrapes the complete Japanese title (including brackets and tags) from
<h2>tags for meaningful file naming. - URL Normalization: Handles
photos-index,photos-slide,aid-xxxx, andview-formats automatically. - Multi-Domain Support: Compatible with
wnacg.com,wnacg.org, andwnacg.net. - Modern Implementation: Built using
Mojo::UserAgentfor robust connection handling and anti-hotlinking bypass.
- LANraragi v0.8.0 or higher.
Mojo::UserAgent(pre-installed in official LANraragi images).
The most elegant way to install this plugin is via Nix Flakes. This automates hash management.
Step 1: Add to your flake.nix inputs
inputs.lrr-plugin-wnacg = {
url = "https://raw.githubusercontent.com/anton1615/lrr-plugin-wnacg/master/Wnacg.pm";
flake = false;
};Step 2: Use in your LANraragi configuration
{ inputs, ... }:
{
virtualisation.oci-containers.containers.lanraragi.volumes = [
"${inputs.lrr-plugin-wnacg}:/home/koyomi/lanraragi/lib/LANraragi/Plugin/Download/Wnacg.pm:ro"
];
}Step 3: Update and Deploy
nix flake update lrr-plugin-wnacg
sudo nixos-rebuild switch --flake .If you are not using Flakes, add the following to your configuration:
let
wnacgPlugin = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/anton1615/lrr-plugin-wnacg/master/Wnacg.pm";
sha256 = "sha256-o5nPwMvg/mbkylquwtwFREfMjtxoBAN125awFyxdYc4=";
};
in {
virtualisation.oci-containers.containers.lanraragi.volumes = [
"${wnacgPlugin}:/home/koyomi/lanraragi/lib/LANraragi/Plugin/Download/Wnacg.pm:ro"
];
}- Download
Wnacg.pmfrom this repository. - Place it in the
/lib/LANraragi/Plugin/Sideloaded/directory of your LANraragi installation. - Restart LANraragi.
- Enable the plugin via Configuration -> Plugins -> Downloader Plugins.
- Developer: Code automatically generated and optimized by Gemini CLI Agent.
- Test Environment: NixOS 25.11, LANraragi 0.9.60 (Docker).
- Logic: Prioritizes Wnacg's official direct ZIP download page; falls back to image list scraping if ZIP is unavailable.
Licensed under the MIT License.
Generated by Gemini CLI Agent