Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to download covers only #60

Closed
anonymous5555522222 opened this issue Apr 22, 2023 · 4 comments · Fixed by #61
Closed

Ability to download covers only #60

anonymous5555522222 opened this issue Apr 22, 2023 · 4 comments · Fixed by #61
Labels
enhancement New feature or request

Comments

@anonymous5555522222
Copy link

The idea

Firstly, thank you very, very much for making this software. It makes the task to archive manga easy.
However, it seems to be missing a feature, which is to solely download all covers that were uploaded to the "Art" section.
My suggestion is to add a switch called "--download-all-covers" or "--only-download-covers" which will download every image from that section. I tried to figure it out by using existing options such as "--use-volume-cover", to no avail. Would be great if the "--cover" switch would work with "--download-all-covers" as well, to select the resolution of the covers.

Why this feature should be added to the app ?

With this feature, users wouldn't need to stress MangaDex's servers, neither waste their bandwidth.
Thank you.

@anonymous5555522222 anonymous5555522222 added the enhancement New feature or request label Apr 22, 2023
@mansuf
Copy link
Owner

mansuf commented Apr 22, 2023

With this feature, users wouldn't need to stress MangaDex's servers, neither waste their bandwidth.

Can you explain more about this ?
Technically downloading all covers will cost a lot of bandwidth than downloading a single cover.

I understand about the feature you requested. But the reason you want them is confusing to me.

@anonymous5555522222
Copy link
Author

With this feature, users wouldn't need to stress MangaDex's servers, neither waste their bandwidth.

Can you explain more about this ? Technically downloading all covers will cost a lot of bandwidth than downloading a single cover.

I understand about the feature you requested. But the reason you want them is confusing to me.

I'm sorry. What I meant is that with this option, the user would not need to download every chapter uploaded and search for the cover images, if they were uploaded at all by the scanlation group inside the first chapter of each volume.

The reason for me needing this is silly, it's mostly because I like to do charts and documents with images of manga I have completed. With this option, I could download all covers and pick the best looking one(s), with consistent resolution (256px or 512px) without having to visit MangaDex.

Thanks in advance.

@mansuf
Copy link
Owner

mansuf commented Apr 28, 2023

I have made PR #61 about this, you can try to install and use it.

NOTE: You must have Python 3.8.x or up with pip and git installed on your device.

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

Let me know when you have issues with this new feature 🙂


My suggestion is to add a switch called "--download-all-covers" or "--only-download-covers" which will download every image from that section

Instead of using --download-all-covers or --only-download-covers, i've made command cover to show list of covers. You can choose it which cover you want to download. This command will download the covers only.

# Manga id only
mangadex-dl "cover:f9c33607-9180-4ba6-b85c-e4b5faee7192"

# Full manga URL
mangadex-dl "cover:https://mangadex.org/title/f9c33607-9180-4ba6-b85c-e4b5faee7192"

# Full cover manga URL
mangadex-dl "cover:https://mangadex.org/covers/f9c33607-9180-4ba6-b85c-e4b5faee7192/c18da525-e34f-4128-a696-4477b6ce6827.png"

If you don't wanna get prompted use --input-pos option.

# Automatically select choice 1 
mangadex-dl "cover:https://mangadex.org/title/..." --input-pos 1 

# Automatically select all choices
mangadex-dl "cover:https://mangadex.org/title/..." --input-pos "*"

Would be great if the "--cover" switch would work with "--download-all-covers" as well, to select the resolution of the covers.

As for this, you can use different command such as cover-512px or cover-256px to choose different quality.

# 512px quality
mangadex-dl "cover-512px:https://mangadex.org/title/f9c33607-9180-4ba6-b85c-e4b5faee7192"

# 256px quality
mangadex-dl "cover-256px:https://mangadex.org/title/f9c33607-9180-4ba6-b85c-e4b5faee7192"

I forgot to mention, you can download manga covers directly to the app. Just give the URL and you're good to go.

mangadex-dl "https://mangadex.org/covers/f9c33607-9180-4ba6-b85c-e4b5faee7192/c18da525-e34f-4128-a696-4477b6ce6827.png"

@mansuf mansuf changed the title Option to just download all covers from an entry. Ability to download covers only Apr 29, 2023
@anonymous5555522222
Copy link
Author

I have made PR #61 about this, you can try to install and use it.

NOTE: You must have Python 3.8.x or up with pip and git installed on your device.

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

Let me know when you have issues with this new feature 🙂

My suggestion is to add a switch called "--download-all-covers" or "--only-download-covers" which will download every image from that section

Instead of using --download-all-covers or --only-download-covers, i've made command cover to show list of covers. You can choose it which cover you want to download. This command will download the covers only.

# Manga id only
mangadex-dl "cover:f9c33607-9180-4ba6-b85c-e4b5faee7192"

# Full manga URL
mangadex-dl "cover:https://mangadex.org/title/f9c33607-9180-4ba6-b85c-e4b5faee7192"

# Full cover manga URL
mangadex-dl "cover:https://mangadex.org/covers/f9c33607-9180-4ba6-b85c-e4b5faee7192/c18da525-e34f-4128-a696-4477b6ce6827.png"

If you don't wanna get prompted use --input-pos option.

# Automatically select choice 1 
mangadex-dl "cover:https://mangadex.org/title/..." --input-pos 1 

# Automatically select all choices
mangadex-dl "cover:https://mangadex.org/title/..." --input-pos "*"

Would be great if the "--cover" switch would work with "--download-all-covers" as well, to select the resolution of the covers.

As for this, you can use different command such as cover-512px or cover-256px to choose different quality.

# 512px quality
mangadex-dl "cover-512px:https://mangadex.org/title/f9c33607-9180-4ba6-b85c-e4b5faee7192"

# 256px quality
mangadex-dl "cover-256px:https://mangadex.org/title/f9c33607-9180-4ba6-b85c-e4b5faee7192"

I forgot to mention, you can download manga covers directly to the app. Just give the URL and you're good to go.

mangadex-dl "https://mangadex.org/covers/f9c33607-9180-4ba6-b85c-e4b5faee7192/c18da525-e34f-4128-a696-4477b6ce6827.png"

Thank you so, so much!
It's working perfectly... There's just something small missing, which is, getting the ID of a manga entry without visiting MangaDex. I managed to find a hacky way to get it though, with this command:
mangadex-dl --search "manga title" -sc 9999999 --path "X:\"
In my computer, the X: drive does not exist, so MangaDexDownloader just crashes. However, before crashing, it outputs the ID of the manga entry that I select from the search results! Therefore, this already works good enough for me, but the ability to download covers of a manga entry directly with the search function would be a nice addition.
Again, thank you SO much for this! It's lifesaving for me.

@mansuf mansuf closed this as completed in #61 May 1, 2023
mansuf added a commit that referenced this issue May 1, 2023
Add ability to download covers manga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants