mansuf / mangadex-downloader

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

Only Download Newest Chapters #38

Closed Kalidibus closed 1 year ago

Kalidibus commented 1 year ago

Is there a flag that will allow us to only download the newest "n" chapters?

I would like to run this script automatically once a week, and download the newest, say 5, chapters from each release I'm following. Right now I only see how to download a set number range which wouldn't work as you need to know the chapter number and change it each time.

Kalidibus commented 1 year ago

Main point of this would be to avoid hitting every file on a large series each time, otherwise I'd just run it open

mansuf commented 1 year ago

Main point of this would be to avoid hitting every file on a large series each time, otherwise I'd just run it open

Did you mean, avoid "checking every file if it's exist or not " ?

i'm pretty sure the application can check if the chapters is exist or not, if exists then it would be simply skipped (unless you're using raw format, it would be verify each images and has higher chance to get rate limited by the API).

Kalidibus commented 1 year ago

Main point of this would be to avoid hitting every file on a large series each time, otherwise I'd just run it open

Did you mean, avoid "checking every file if it's exist or not " ?

i'm pretty sure the application can check if the chapters is exist or not, if exists then it would be simply skipped (unless you're using raw format, it would be verify each images and has higher chance to get rate limited).

Sorry, you're correct. I think i was on an old version that checked each file, but since updating it only checks that the volume is downloaded so all good.