Skip to content

Convert Book ID's to MD5 to reduce collisions#274

Open
shaunbarlow wants to merge 7 commits into
hadynz:masterfrom
shaunbarlow:master
Open

Convert Book ID's to MD5 to reduce collisions#274
shaunbarlow wants to merge 7 commits into
hadynz:masterfrom
shaunbarlow:master

Conversation

@shaunbarlow

Copy link
Copy Markdown

Keep fletcher hashes for the highlight refs.

Retains backwards compatibility with notes that store the old fletcher hashes, and will update them as new highlights are added

This is my attempt to fix this

Why

I have two books that have their highlights merged to to being assigned the same bookID with the current hash used. I want to be able to have them seperate, but otherwise cause as little disruption as possible.

For interest, the two books are "The One Year Bible TLB" and "How to Develop Your Personal Mission Statement" 🤷

Shaun Barlow added 2 commits January 8, 2024 17:01
Keep fletcher hashes for the highlight refs.

Retains backwards compatiblity with notes that store the old fletcher hashes, and will update them as new highlights are added
@sancg

sancg commented Mar 15, 2024

Copy link
Copy Markdown

Hi Sr @shaunbarlow, is the hash used to track on which file new notes will be added? How does it work? As you mentioned, if it is to distinguish 2 books, why did the last way of Hashing collide with "The One Year Bible" TLB and "The One Year Bible TLB".
I'm creating from scratch a script that makes the same as this plugin and I would like to collaborate on this one, but I get lost when reading the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants