Closed bashfulrobot closed 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.
Perfect. :-) I more so meant that it would be useful in the context of a -last
option.
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?
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).
Makes sense, I'm going to add the --last
option.
@bashfulrobot could you please try out the v0.13-alpha?
Seems to work well!
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.