nybbles / obsidian-pocket

Pocket integration for Obsidian
MIT License
237 stars 23 forks source link

BUG: Some items will not match "URL" parameter #100

Open laingc opened 2 years ago

laingc commented 2 years ago

Hi there,

Some items will consistently not match based on the "URL" parameter. Here is an example of a pocket note frontmatter, which contains the relevant url and pocket url:

---
title: "The Trimodal Nature of Software Engineering Salaries in the Netherlands and Europe"
URL: https://blog.pragmaticengineer.com/software-engineering-salaries-in-the-netherlands-and-europe/
pocket-url: https://getpocket.com/read/3275416886
tags: [saved-link]
excerpt: Update: dozens of hiring managers confirmed this trimodal model applies to all global markets: from the US, through Asia to Latin America as well. Also see TechPays.com for data recorded for a growing number of countries in the three tiers.
---

As you can see from the screenshot below, the item is created multiple times, and refuses to match.

Screenshot 2022-07-25 at 9 01 50 AM

A couple of sites I've noticed this happens on are Hacker News (news.ycombinator.com) and ThreadReader (https://threadreaderapp.com/), though neither site fails consistently.

JamesR404v2 commented 2 years ago

Maybe there are some special characters on specific article URLs or titles that fail to sync.

Are specific articles persistently failing that you know off?

jakelucasnyc commented 7 months ago

I don't know if this will apply to your situation, but I just was running into this same issue where syncing would create duplicates of the same note. I only started encountering this issue when I set the "Pocket item notes folder location" setting. I previously set it to "pocket" and was getting duplicate notes every time. However, when I changed it to "/pocket", I stopped getting all duplicates.

Hope this helps!