mansuf / mangadex-downloader

A command-line tool to download manga from MangaDex, written in Python.
https://mangadex-dl.mansuf.link/
MIT License
472 stars 37 forks source link

Change name ordering #94

Closed Rodrigo-017 closed 8 months ago

Rodrigo-017 commented 10 months ago

The idea

Add a command that changes the name ordering for every chapter. Not sure if there is a command that does that.

Why this feature should be added to the app ?

I hate when the scanlator's name comes before the manga name and the chapter number, when it's ordered that way the list becomes a complete mess and a lot of renaming is required.

mansuf commented 8 months ago

Hello, sorry for taking so long, i got too busy in real life things.

Anyways, this feature has been added in v3.0.0 branch (commit https://github.com/mansuf/mangadex-downloader/commit/3698cf10aa22c14e1225000bffbff4f2a3b55c2e)

You can start trying it now by installing development version (v3.0.0 branch)

Installation with git + pip:

pip uninstall mangadex-downloader
pip install git+https://github.com/mansuf/mangadex-downloader.git@3698cf10aa22c14e1225000bffbff4f2a3b55c2e

If you're installing mangadex-downloader from github releases, you can download the development version in here:

The download files are available in "artifacts" section

https://github.com/mansuf/mangadex-downloader/actions/runs/7249594589/


Now, you can change the name ordering for every chapter using --filename-chapter, --filename-volume, --filename-single options (it depends which format did you use, for example: if you use any volume formats like cbz-volume, you must use --filename-volume to change filenames).

Example usage:

# This will download to directory "/home/sussyuser/manga/Some manga title/"
# with filename "Vol. insert_volume_here Ch. insert_chapter_here.cbz"
mangadex-dl "URL" --path "/home/sussyuser/manga/{manga.title}" -f cbz --filename-chapter "Vol.{chapter.volume} Ch.{chapter.chapter}{file_ext}"

For more information about path placeholders, you can read the documentation here -> https://mangadex-dl.mansuf.link/en/v3.0.0/cli_ref/path_placeholders.html

If you have a problem, issue or bug, you can re-open and comment in this issue tracker here.