mihonapp / mihon

Free and open source manga reader for Android
Apache License 2.0
10.31k stars 470 forks source link

Prompt to re-scan downloaded chapters after restoring backup. #681

Open Alpha-Qian opened 6 months ago

Alpha-Qian commented 6 months ago

Describe your suggested feature

When users reinstall Mihon and restore backup data from Mihon or Tachiyomi, they will encounter issues where the app fails to recognize the downloaded chapters in the storage directory, leading to failed re-downloads. Adding a prompt to re-scan downloaded chapters after restoring backup or implementing an automatic re-scan feature can solve this issue. This might inconvenience users, such as myself, when migrating from Tachiyomi to Mihon.

Other details

No response

Acknowledgements

MajorTanya commented 6 months ago

There is no guarantee that users chose their Tachiyomi folder, or that they had any files downloaded before. How would Mihon figure out if it's sensible to show this prompt you're suggesting without also confusing people who didn't have anything downloaded or didn't migrate from Tachiyomi/any similar forks?

Alpha-Qian commented 6 months ago

I'm not sure how the re-scanning of downloaded chapters is implemented, but I think there shouldn't be any side effects to re-scanning, regardless of whether there are missed chapters or not. It's quite confusing that Mihon doesn't check for any missed chapters after restoring from backup.

pspmoe commented 6 months ago

There is no guarantee that users chose their Tachiyomi folder, or that they had any files downloaded before. How would Mihon figure out if it's sensible to show this prompt you're suggesting without also confusing people who didn't have anything downloaded or didn't migrate from Tachiyomi/any similar forks?

Perhaps provide better portability by saving additional download details files. https://github.com/mihonapp/mihon/issues/652

Alpha-Qian commented 6 months ago

There is no guarantee that users chose their Tachiyomi folder, or that they had any files downloaded before. How would Mihon figure out if it's sensible to show this prompt you're suggesting without also confusing people who didn't have anything downloaded or didn't migrate from Tachiyomi/any similar forks?

Perhaps provide better portability by saving additional download details files. #652

However, if the downloaded list stored in the backup is inconsistent with the actual situation, which will lead to confusion, I feel it is better to prompt the user to scan again or automatically.