mansuf / mangadex-downloader

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

Don't re-download cover every time #23

Closed garbled1 closed 2 years ago

garbled1 commented 2 years ago

I use this to re-update manga I read into komga on a timed basis, but it re-downloads the cover.jpg every time it visits a manga, so my komga directory always shows up as modified. Would it be possible to add an option to only download the cover if it is missing, or even changed?

mansuf commented 2 years ago

It was an issue caused by this line of code. The argument value replace should be matching with local variable replace from download() function, i don't know why i did that in the first place. Sorry about that

mansuf commented 2 years ago

Fixed in https://github.com/mansuf/mangadex-downloader/commit/c8f1045f654198ea8b27f5773c252bc4a195839e, thank you !