Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shaunbarlow
Copy link

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
Copy link

sancg commented Mar 15, 2024

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.

2 participants