hadynz / obsidian-kindle-plugin

Sync your Kindle notes and highlights directly into your Obsidian vault
MIT License
922 stars 52 forks source link

Page and Location not syncing with correct information #213

Open TheHuntyBadger opened 1 year ago

TheHuntyBadger commented 1 year ago

Describe the bug

Page number and location are not syncing properly from Kindle Highlights.

Here is the highlight in my clippings on Amazon:

Highlight (yellow) - 1 Everything You Need to Know > Page 14 · Location 133 If you make a plan , you impose a structure on yourself ; it makes you inflexible . Note - 1 Everything You Need to Know > Page 14 · Location 134 Making a plan forces you to it's structure. You can miss discovery and impromptu thoughts.

Here is what comes through the sync:

Making a plan forces you to it's structure. You can miss discovery and impromptu thoughts.

[[Sönke Ahrens, How to Take Smart Notes]] (133 133)

Planners don't explore a topic, they only complete what is needed to accomplish the plan. This limits learning.

Planners are also unlikely to continue with their studies after they finish their examinations. They are rather glad it is over. ^ref-3553

Here is the Highlight template code:

{{note | truncate(255, true,"")}}

{{ text }}


{% if note %}{{note}}{% endif %}

[[{{author}}, {{title}}]] ({{page}} {{location}})

Method of syncing

To Reproduce

Steps to reproduce the behaviour:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. Share error(s) from Developer Tools console

Expected behaviour

Page and Location should be different, distinct values as per the original Kindle highlight

Screenshots

If applicable, add screenshots to help explain your problem.

Metadata

hadynz commented 1 year ago

There is a lot of extra information in your example. I would like to confirm my understanding of the bug you are reporting.

Are you saying that location/page are incorrect, meaning that you were expecting:

[[Sönke Ahrens, How to Take Smart Notes]] (133 133)

to be

[[Sönke Ahrens, How to Take Smart Notes]] (14 134)?

j0l3g3 commented 1 year ago

I have the same issue, instead of showing the page it shows the location.

TheHuntyBadger commented 1 year ago

There is a lot of extra information in your example. I would like to confirm my understanding of the bug you are reporting.

Are you saying that location/page are incorrect, meaning that you were expecting:

[[Sönke Ahrens, How to Take Smart Notes]] (133 133)

to be

[[Sönke Ahrens, How to Take Smart Notes]] (14 134)?

Yes, that is correct

damani42 commented 7 months ago

I have the same issue actually and so the note can't be loaded.