Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aniyomi needs to implicitly trust the downloaded chapters cache file #1555

Open
8 tasks done
demonic-avenger opened this issue Apr 26, 2024 · 0 comments
Open
8 tasks done

Comments

@demonic-avenger
Copy link

Steps to reproduce

Steps to reproduce

Download some Manga chapters.
Set Filter to show Downloaded (checked).
Fully close Aniyomi.
Open Aniyomi.

Expected behavior

The Filtered series with downloaded chapters should be displayed within a reasonable amount of time.

Actual behavior

Filtered series with downloaded chapters take a ridiculous amount of time to display giving the impression that the downloaded chapters are missing or Aniyomi is misbehaving in some way.

Crash logs

No response

Aniyomi version

0.15.2.4

Android version

Android 13

Device

Redmi note 9

Other details

This issue has existed since Tachiyomi 0.15.0 as far as I know when it was updated to use Scoped Storage. While my kneejerk reactive response would be: "Just roll back that update," I know that it was implemented because Android is supposed to make this mandatory in a future version, for better and moreso for worse.

In any case, Tachiyomi and now Aniyomi seems to verify the existence of the manga chapters downloaded locally upon application startup. With Scoped Storage in place, this process is extraordinarily slow and it gets slower with more downloaded chapters. This also causes a number of other, similar issues like for instance, updating your library then downloading unread chapters: Aniyomi will typically give the appearance of doing nothing while in actuality it is still verifying the presence of downloaded chapters that occurs when it is started. Give it enough time and it will begin downloading the unread chapters as it goes about verifying each series' downloaded chapters.

I would suggest that upon startup, Aniyomi no longer verifies all downloaded manga chapters and instead just implicitly trusts the cached download data. I'm assuming that the cache is basically a list of all downloaded chapters, maybe in .xml format? If the user attempts to read a chapter that, according to the cache, indicates the chapter is downloaded but it turns out the required files are missing, an error window pops up explaining that the downloaded chapter does not exist and this may be due to the user deleting or moving it with an external program or the download cache file is corrupted. It should offer options to Invalidate the Downloads Index to rebuild the cache file, read the chapter online, or cancel (close the window).

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • I have written a short but informative title.
  • If this is an issue with an official extension, I should be opening an issue in the extensions repository.
  • If this is an issue with an official manga extension and this issue can be replicated in the Tachiyomi app, that I should be opening an issue in Tachiyomi's extensions repository.
  • I have gone through the FAQ and troubleshooting guide.
  • I have updated the app to version 0.15.2.4.
  • I have updated all installed extensions.
  • I will fill out all of the requested information in this form.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant