kiwix / libkiwix

Common code base for all Kiwix ports
https://download.kiwix.org/release/libkiwix/
GNU General Public License v3.0
112 stars 54 forks source link

Impossible to drop entries from the kiwix::Downloader's cache #1050

Closed veloman-yunkan closed 3 months ago

veloman-yunkan commented 4 months ago

kiwix::Downloader caches downloads that are actually managed by aria2c. However there is no API to drop entries from that cache. This results in the following bugs in kiwix-desktop:

  1. Downloading a book, removing it and then downloading it again (all in the same kiwix-desktop session) doesn't actually download it the second time and the attempt to open the book fails.
  2. Cancelling an incomplete download and then restarting it results in a ghost download that doesn't make any progress (kiwix/kiwix-desktop#1022).
veloman-yunkan commented 3 months ago

1066 has fixed (at least for the typical scenarios) both user observable issues described in this ticket without implementing the functionality of dropping entries from the kiwix::Downloader's cache. I am not sure if keeping this ticket open is justified.

mgautierfr commented 3 months ago

Let's close it as we don't really plan to do more on this point. We will reopen it if needed.