Girbons / comics-downloader

tool to download comics and manga in pdf/epub/cbr/cbz from a website
MIT License
484 stars 53 forks source link

Last Issue option #31

Closed bashfulrobot closed 5 years ago

bashfulrobot commented 5 years ago

Currently, the tool has an -all option. It would be really great if there was a -last option which would simply download the last issue. And if the tool was intelligent enough to test for the existence of the file, you could easily add this to a cron job to check for the latest issue and auto download (if you defined everything in a shell script) as things become available.

Girbons commented 5 years ago

Hi @bashfulrobot,

There is already a check for file existency https://github.com/Girbons/comics-downloader/blob/master/pkg/sites/loader.go#L29.

bashfulrobot commented 5 years ago

Perfect. :-) I more so meant that it would be useful in the context of a -last option.

Girbons commented 5 years ago

Yes of course, anyway I don't know if a --last option is useful at all, because you can do a shell script that runs as deamon with --all option enabled and the trick is done. Maybe a deamon parameter could be useful?

bashfulrobot commented 5 years ago

Yes, I guess that would be a way of doing it. I guess I was thinking that it would not rely on the existence of the file to determine that last issue (in case people delete the issue after reading).

Girbons commented 5 years ago

Makes sense, I'm going to add the --last option.

Girbons commented 5 years ago

@bashfulrobot could you please try out the v0.13-alpha?

bashfulrobot commented 5 years ago

Seems to work well!