Package: mangadlmao
mangadlmaoA cli script to download and package manga into CBZ forKomga.What sets it apart from other scripts like this is that it creates
aComicInfo.xmlforKomgaand it will also download any updated chapters
to get the latest versions with fixes.File modified times are used to track which chapters have already been downloaded.Note: The API for Semantic Versioning purposes is considered the configuration file and cli
options. Every python module contained in this package is internal and subject to breaking
changes at any time.InstallationInstall usingpip:python -m pip install mangadlmaoOptionally you can install thexor-cipherpackage to speed up decryption:python -m pip install xor-cipherUsageThis script is primarily meant to be used with aconfiguration file.However, there are some command line arguments that can be used:$mangadlmao--helpUsage: mangadlmao [OPTIONS] [URL]...Download Manga from the configuration file or URL arguments.Options:-v, --verbose       More verbose messages-c, --config PATH   Print or set configuration file path.-j, --jobs INTEGER  Number of parallel chapter page downloads.  [default: 4]-l, --lang TEXT     Language to download when URLs are given, can beprovided multiple times.-e, --exclude TEXT  Scanlation groups and users to exclude, can be providedmultiple times.-s, --since TEXT    Download only chapters updated after specified date(eg.: 2022-02-22). If set to 'auto', only chapters newerthan the most recent will be downloaded. If set to'null' (default), all chapters will be downloaded.-f, --from FLOAT    Download only chapters starting from provided number--help              Show this message and exit.The default download directory is the current directory. You can change it through theconfiguration file.ConfigurationYou can get the location of the configuration file by runningmangadlmao -cor specify a custom path withmangadlmao --config=/custom/location/config.ymlThe configuration file format is YAML:---download_directory:"."# default "since", can be null, a date, or auto (default: auto)# - null: download everything# - auto: download only chapters newer than the most recently created local chapter# - a date: eg.: 2022-02-22, only chapters updated after the date will be downloadedsince:auto# default languages to download, can be overridden per mangalang:-en# global exclude for groups and users, can be name or idexclude:-TerribleMachineTranslator-33171bc6-0c2a-40d7-9cca-120ac52f09aemanga:# entries with url can be either MangaDex, MangaSee, or MangaPlus-url:https://mangadex.org/title/15931821-1a3a-4aee-b27c-1c95d8d5dcf1/hololive-yohane-s-twitter-shortstitle:Hololive Shorts by Yohane# override default "since" setting:since:2020-12-24# only download chapters starting from chapter number 69from:69# override default languages (only works for MangaDex):lang:[en,de]# additional group and user excludes (only works for MangaDex):exclude:-AnotherTerribleMachineTranslator# entries with id are treated as MangaDex entries-title:Nice Manga Titleid:aed22b2e-b544-4204-9702-cdf5cfc167de# entries with rss are currently treated as MangaSee entries-title:Manga 69rss:https://mangasee/rss/Manga-69.xmlsince:2020-12-24# lang has no effect with MangaSeeThetitlekey is optional but because it is used as directory name, if the name changes
server-side, all chapters will be re-downloaded into a new directory.DevelopmentInstall the package as editable and install development dependencies fromrequirements.txt:python -m pip install -e .python -m pip install -r requirements.txtThen installpre-commit:pre-commit installConfigure git to use the.git-blame-ignore-revsfile:git config blame.ignoreRevsFile .git-blame-ignore-revs