metafates / mangal

📖 The most advanced (yet simple) cli manga downloader in the entire universe! Lua scrapers, export formats, anilist integration, fancy TUI and more!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"--chapters all" won't download new chapters after first download

rzumbado opened this issue · comments

Describe the bug

The first time you download all chapters using "--chapters all" works fine, downloads everything. The problem is after that, if a new chapter is added and you try to download with "--chapters all" it won't download new chapters.

Reproduction steps

  1. Pick a manga and download all chapters with "--chapters all"
  2. Wait for a new chapter to go out (usually a week)
  3. Run again the download with "--chapters all" -> the new chapter won't be downloaded.

Expected behavior

If I download with "--chapters all" a second time I would expect the system to download new published chapters.

Additional context

I was using Kaizuku which is a great UI tool to download my manga. Noticed the new chapters were not being downloaded. Then I switched to mangal inline to build automated scripts and notice the same behavior as Kaizoku -> new chapters were not being downloaded.

Then I found the bug is present in the "caching" code. If you delete your cache folder and try again, it will download the new chapters this time.

So I switched back to Kaizoku and automated the cache clearing at night. Kaizoku has been downloading new chapters after that.

Operating System

Linux

@rzumbado Do you mind sharing where the cache is located? I'm running into the same issue.

@rzumbado Do you mind sharing where the cache is located? I'm running into the same issue.

The directory is located at root's home: /root/.cache/mangal/
You need to remove that dir enterily, like this:

rm -v -r /root/.cache/mangal/ || echo "(no cache directory found)"

I do not know where is that folder located within windows (I only use linux for this) but I am guessing it should be somewhere inside the /Users/ folder in C: drive