Closed Cologler closed 7 months ago
-
Lost categories.
No response
latest
12
phone
Currently, merging backup data tries to use the lower order if two categories have the same name:
https://github.com/kaiserbh/tachiyomi/blob/fb1649125cd4fce6843ede61862de195b393f1d1/app/src/main/java/eu/kanade/tachiyomi/data/sync/service/SyncService.kt#L278-L292
However, the backup restore uses the order as the key:
https://github.com/kaiserbh/tachiyomi/blob/fb1649125cd4fce6843ede61862de195b393f1d1/app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/restorers/MangaRestorer.kt#L344-L350
Which causes manga to lose their categories.
Maybe should update all mangas's categories.
Steps to reproduce
-
Expected behavior
-
Actual behavior
Lost categories.
Crash logs
No response
Tachiyomi version
latest
Android version
12
Device
phone
Other details
Currently, merging backup data tries to use the lower order if two categories have the same name:
https://github.com/kaiserbh/tachiyomi/blob/fb1649125cd4fce6843ede61862de195b393f1d1/app/src/main/java/eu/kanade/tachiyomi/data/sync/service/SyncService.kt#L278-L292
However, the backup restore uses the order as the key:
https://github.com/kaiserbh/tachiyomi/blob/fb1649125cd4fce6843ede61862de195b393f1d1/app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/restorers/MangaRestorer.kt#L344-L350
Which causes manga to lose their categories.
Acknowledgements