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

Batch script to download all new (or unread) chapters for all followed manga #39

Closed
Neoakb opened this issue Dec 28, 2022 · 4 comments
Closed
Labels
enhancement New feature or request

Comments

@Neoakb
Copy link

Neoakb commented Dec 28, 2022

The idea

So I can use --save-as raw-volume --start-chapter ## --no-chapter-info --login

I've went ahead and downloaded everything that is out for all the manga I currently read. I would like to make a "download updates" batch script to just grab the newest stuff. Currently all the manga is set to "completed" in MD, which IIRC should update to "reading" when a new chapter comes out. Could the script login, then grab all the latest for whatever is marked as unread, download it all as a raw-volume, then mark it all as read?

I hope I explained this right lol

Thanks for a great tool!!!!

Why this feature should be added to the app ?

Because I love you.

@Neoakb Neoakb added the enhancement New feature or request label Dec 28, 2022
@mansuf
Copy link
Owner

mansuf commented Dec 28, 2022

Could the script login, then grab all the latest for whatever is marked as unread, download it all as a raw-volume, then mark it all as read?

yes

Because I love you.

no


Jk, i will add this to next release. Currently waiting new authentication system for developers to be released. I will work on this after new authentication system has been implemented fully. Hopefully, it didn't take long time.

Thanks for the idea 👍

@JShiesty-dev
Copy link

Even adding a --latest option would be great too. I would love to see a feature that simply pulls the newest chapter available, with no login or anything.

@mansuf
Copy link
Owner

mansuf commented Jan 24, 2023

I should give an update for this issue, it's been a month since this issue opened.

MangaDex is still not opened their OAuth2 registration yet. I cannot testing further if the new authentication system for developers is not yet released and i just wanna finish implement the new authentication system.

While i was waiting, i have reworked how the app download the latest chapters (see 865b7f5 for more info). It's should properly handle latest chapters regardless what the formats is (either chapters, volumes, or single). So you don't have to worry about latest chapters are not being downloaded and you have to delete files (if you're using volume or single formats) or use --replace if you want to download latest chapters.

If you want to try it, you can install development version:

pip install git+https://github.com/mansuf/mangadex-downloader.git@e70eab960c25b61bbd6a317bc2ec2f08cc5d67a2

Note: this is the latest stable patch from development version, if you have issue while running development version. You can open another issue.

Could the script login, then grab all the latest for whatever is marked as unread, download it all as a raw-volume, then mark it all as read?

As for this, i have been working on it. So it should finish this week. I cannot promise though, sometimes life can give you unexpected things :)

@mansuf
Copy link
Owner

mansuf commented Jan 25, 2023

Added in 2533e5b

You can install development version, if you want to try it early

pip install git+https://github.com/mansuf/mangadex-downloader.git@2533e5b5b5c10d3182746218564ec1298497111e

You can access the feature by using --download-mode option with value unread. Oh and you must login to use the feature.

mangadex-dl "https://mangadex.org/title/a96676e5-8ae2-425e-b549-7f15dd34a6d8" --login --download-mode "unread"
# You will be prompted to enter username and password to login

@mansuf mansuf closed this as completed Jan 25, 2023
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

No branches or pull requests

3 participants