Skip to content

Fix quick match not storing the episode guid - #5544

Open
davidlinke wants to merge 1 commit into
advplyr:masterfrom
davidlinke:fix/quick-match-episode-guid
Open

davidlinke wants to merge 1 commit into
advplyr:masterfrom
davidlinke:fix/quick-match-episode-guid

Conversation

@davidlinke

Copy link
Copy Markdown

Brief summary

Resolves duplicate episodes appearing after importing podcasts into audiobookshelf

Which issue is fixed?

No existing reported issue

In-depth Description

After importing an existing podcast library into audiobookshelf, I started getting duplicate episodes due to it re-downloading ones I already had. Quick match looks each episode up in the RSS feed and fills in what's missing by copying the download URL, title and dates, but not the guid. checkMatchesGuidOrEnclosureUrl() matches only on the guid or the enclosure URL, and since imported episodes have neither, every feed check treated them as new and downloaded them again. So a quick-matched episode has no guid, and the duplicate check won't recognize the episode.

How have you tested this?

  1. Cleared a podcast episode extraData.guid and enclosureURL, reproducing the imported-episode state.
  2. Hit the POST /api/podcasts/:id/match-episodes endpoint. Before fix, observe extraData.guid is missing. After fix, observe extraData.guid exists and the duplicate check matches it.

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.

1 participant