Optionally record original HASH for archives #712
Replies: 1 comment 5 replies
-
|
Putting this into the db gets messy real quick because if you use rar files (I know I'm in the minority there) you can't easily make files the same even if they have the same content (there's like 2 bytes that change no matter what) zip files we could I believe make it consistent but if it gets re-tagged the new hash would still change and paths can collide for the original name so I don't really see a good way to put this in the db that isn't a bunch of work. So there is the scan info tag that we could put the original hash in and only add it if it doesn't have a hash. Hashing each file will also make tagging take a bit longer so that would probably be a flag to enable it at all. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It's a slightly weird idea/request for sure but the idea came about this way. I've created a script that mirrors all my metadata files into folders named after the archive in question (some managed by mylar, some custom created, lots scene based so no real consistency in file name itself) using the library's folder structure mirrored as well to keep things somewhat organized.
I did this as a personal backup, but decided well I know CV API is rough and I've got lots of data from sources that can't be automatically grepped from (think creator pages, publisher sites, previewsworld, errr fetlife yes there's a story there, etc) and for books the 3 DBs don't even recognize because it's apparently me and their mom that bought them.
However my own lack of organization is making things rough for folks and they asked about matching by hash, so I had to explain my current hashes include the very files they're looking at embedded and thus will not match.
Then I had the dim bulb turn on, "what if?" Jeffrey Wright said in my brain and boom the idea to record filename and original + new file hash for each archive written when the option is turned on into either a spreadsheet or DB table in the comictagger sqlite DB.
Beta Was this translation helpful? Give feedback.
All reactions