Difegue / LANraragi

Web application for archival and reading of manga/doujinshi. Lightweight and Docker-ready for NAS/servers.
https://lrr.tvc-16.science
MIT License
2.17k stars 153 forks source link

Archives losing metadata after modifying their contents & renaming the filenames #781

Open soarpasser opened 1 year ago

soarpasser commented 1 year ago

0.8.81

There is a bug with the current version of LR where upon editing a certain archive - for example adding images to its archive folder and then changing the filename - can result in its metadata being completely stripped upon a restart of LR. This isn't supposed to happen by design.

The phenomenon that occurs is that the old archive will have its metadata stripped and a completely new file ID assigned, despite having already existed on the filemap.

This phenomenon only happens to some archives, where I've found that it's usually "dated" archives - as in those that haven't seen any modification in a while (or could be because they're added before a certain version of LR?) that has this situation happen to them. More recently added archives seems to be never affected by this change.

gth7754125 commented 1 year ago

Same Problem here. I think we need a way to persist the metadata to a info.json file and store it into archieve(like eze or other plugin do), so everytime when we do some changes, no matter what it is, we can findback metadata attached to the archieve without border of hash ID. Otherwise, we can only calculate the thumbnail's similarity as the unique singal because normally few people change the first image of the archieve.