mihonapp / mihon

Free and open source manga reader for Android
Apache License 2.0
10.07k stars 458 forks source link

Not seeing downloaded chapters after tachiyomi backup recovery+path selection #13

Open Psychocrysma opened 9 months ago

Psychocrysma commented 9 months ago

Steps to reproduce

  1. Backup the entire library from tachiyomi
  2. Set up Mihon with the base Tachiyomi folder without changing anything
  3. Recover from backup at first app start
  4. Trust all the extensions
  5. Open any series in the library whose chapters are downloaded and found in the "downloads" subfolder (in the Tachiyomi main folder)
  6. Notice that, while opening the chapter DOES pull from the downloads folder, you cannot see which ones are already downloaded from within Mihon.

Expected behavior

At step 6, the expected outcome should be that it recognizes that the chapter is already present, and therefore, it should be noted as "downloaded".

Actual behavior

As stated in step 6, you cannot tell from within the app if chapters already present in the "downloads" subfolder path are, in fact, present.

Crash logs

No response

Tachiyomi version

Mihon v.0.16.0

Android version

Android 13

Device

Samsung Galaxy S20 Ultra

Other details

No response

Acknowledgements

Psychocrysma commented 9 months ago

I should add that I have "Save as CBZ archive" turned on just in case that matters.

Psychocrysma commented 9 months ago

I found that there is in fact a way to make it invalidate downloads index in the Advanced settings. I think this should be done automatically upon backup recovery at first start, but it is what it is.

Madaraki-chan commented 9 months ago

I have a similar situation, but also after completely closing the app or restarting the phone the downloaded ones stop displaying again, and also the "invalidate downloads index" stops working.

Madaraki-chan commented 9 months ago

Sometimes when I reboot my smartphone, the chapters are displayed as downloaded, but when I click on them, the online version opens (when the internet is disconnected, nothing opens at all, referring to inaccessibility of the source). Also other chapters are not downloaded and the update doesn't work. In my case, after every smartphone reboot, the only thing that helps is changing the Storage location to a random folder, then changing it back to the required one. Then it rechecks the chapters and everything works again. However, downloading and updating still doesn't work. I am using Android 9, ZTE Blade 20 smart.

Madaraki-chan commented 9 months ago

Also, I should probably clarify that this situation happens on all versions of tachi 0.15.+, but on version 0.14.7 everything works properly. Perhaps it's a matter of changing the storage in 0.15.0.

ldvilchez commented 9 months ago

I found that there is in fact a way to make it invalidate downloads index in the Advanced settings. I think this should be done automatically upon backup recovery at first start, but it is what it is.

This worked for me, I even restarted the app and it still seems to be working, haven't tried rebooting the whole phone tho.

2anana commented 3 months ago

My case is same as u guys but a little bit different.

At first, I'm using mihon on my Samsung phone. This problem occurred when im close the app a few minutes then opened it back and the downloaded chapter is gone.

1) So i open my file manager, straight to the "Tachiyomi" file, opened the "download" folder, and still find my downloaded chapter is still there. I selected all of the "extension" folder cuz all the chapter are in it, and move out the folder to other folder.

2) I made a backup of the app n then delete "Mihon" and install the newest version. After that, backup all the data into the app.

3) Afterwards, I goes straight to the file manager, "Tachiyomi" folder, and move all the extensions that has a downloaded chapter in it and place it back on the "download" folder.

4) Finally, I open the app, then to the setting, advanced, press the "invalidate downloads index". Then the app began to refresh itself to recheck the downloaded chapter, as a result my downloaded chapter is now accessible and readable.

Let me know if it works or otherwise.