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

Detecting duplicates via atom:link self #39

Open
ryan-lp opened this issue Jan 10, 2024 · 1 comment
Open

Detecting duplicates via atom:link self #39

ryan-lp opened this issue Jan 10, 2024 · 1 comment

Comments

@ryan-lp
Copy link

ryan-lp commented Jan 10, 2024

The following two podcasts in the DB are duplicates:

id|itunesId|url
616|1002532108|http://feeds.feedburner.com/PostScriptPodcast
2579183||https://feeds.soundcloud.com/users/soundcloud:users:156648456/sounds.rss

The first one has an itunesId, the second one doesn't. The first one also has this XML inside the feed:

        <atom:link href="https://feeds.soundcloud.com/users/soundcloud:users:156648456/sounds.rss" rel="self" type="application/rss+xml"/>

So this can be used to link the two together. Since they don't have two separate itunesIds, they can be collapsed into one row.

@ryan-lp
Copy link
Author

ryan-lp commented Jan 10, 2024

Digging deeper, the listed iTunes ID is invalid when I query the iTunes API, so that's stale. Also, neither feed actually contains any episodes either, so maybe both could be deleted.

But checking the atom:link rel=self could still be used to detect some duplicates.

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

No branches or pull requests

1 participant