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

[Bug]: Duplicate Pod Cast Episodes in UI #2122

Closed
davidmgrantham opened this issue Sep 19, 2023 · 7 comments
Closed

[Bug]: Duplicate Pod Cast Episodes in UI #2122

davidmgrantham opened this issue Sep 19, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@davidmgrantham
Copy link

Describe the issue

Duplicate podcast episodes show in Web UI and beta IOS app.

From syslog

Sep 19 07:45:21 BookSVR audiobookshelf[214647]: [2023-09-19 07:45:21] INFO: [PodcastManager] Successfully downloaded podcast episode "Special Guest Episode on Roman Slavery and Gladiators w/Fiona Radford"
Sep 19 07:45:27 BookSVR audiobookshelf[214647]: [2023-09-19 07:45:27] INFO: [LibraryItem] Library item "bb76e457-1d54-4543-ad0b-5181edbda0da" updated
Sep 19 07:45:27 BookSVR audiobookshelf[214647]: [2023-09-19 07:45:27] INFO: [PodcastManager] Successfully downloaded podcast episode "080 Hekate and Magic"
Sep 19 07:45:37 BookSVR audiobookshelf[214647]: [2023-09-19 07:45:37] INFO: [LibraryItem] Library item "bb76e457-1d54-4543-ad0b-5181edbda0da" updated
Sep 19 07:45:37 BookSVR audiobookshelf[214647]: [2023-09-19 07:45:37] INFO: [PodcastManager] Successfully downloaded podcast episode "079 Old Age, Death, and Burial"
Sep 19 07:45:43 BookSVR audiobookshelf[214647]: [2023-09-19 07:45:43] INFO: [LibraryItem] Library item "bb76e457-1d54-4543-ad0b-5181edbda0da" updated

Episodes 080 shows twice with the exact same metadata in WebUI. This is just one example of many across all podcasts.

dups

Steps to reproduce the issue

  1. Add new Podcast in search feature
  2. Edit podcast
  3. Select Episodes
  4. Select date older than podcast start
  5. Select unlimited episodes
  6. Allow audiobookshelf to download all known episodes

Audiobookshelf version

2.4.3

How are you running audiobookshelf?

Debian/PPA

@davidmgrantham davidmgrantham added the bug Something isn't working label Sep 19, 2023
@advplyr
Copy link
Owner

advplyr commented Sep 21, 2023

I think we discussed this in discord the other day. This isn't reproducible every time but I have seen this.

The workaround until this is fixed is to disable the watcher for the podcast library.

image

@KrzaQ
Copy link

KrzaQ commented Sep 27, 2023

Can we somehow remove duplicates from already downloaded podcasts? I don't fancy re-downloading some with over 1000 episodes.

@advplyr advplyr added the awaiting release Issue is resolved and will be in the next release label Sep 30, 2023
@advplyr
Copy link
Owner

advplyr commented Sep 30, 2023

Fixed in v2.4.4

@advplyr advplyr closed this as completed Sep 30, 2023
@advplyr
Copy link
Owner

advplyr commented Sep 30, 2023

Unfortunately to remove duplicates you will have to do it manually.
You can tell which one is the duplicate by pressing edit on the episode. It won't have a linked audio file from an RSS feed
image

image

If you are familiar with sqlite you could spin your server down and delete those from the podcastEpisodes table

@advplyr advplyr removed the awaiting release Issue is resolved and will be in the next release label Sep 30, 2023
@advplyr
Copy link
Owner

advplyr commented Sep 30, 2023

The fix I made is to stop duplicates from being created when downloading new episodes

@seitzbg
Copy link

seitzbg commented Oct 2, 2023

FYI the dupes are on disk too :(

-rw-r--r--  1 containers containers 211373692 Oct  2 04:16 POD 67 -  Ketamine telemedicine with Dylan Beynon (5999c78d-92da-4a60-aa30-3715664665a8).mp3
-rw-r--r--  1 containers containers 211373692 Aug 27 08:29 POD 67 -  Ketamine telemedicine with Dylan Beynon.mp3
-rw-r--r--  1 containers containers 160559252 Oct  2 04:16 POD 69 -  The Alchemist with Dr. Tarik Peterson (d81fa165-da75-4747-a3d2-530eab1f1f1f).mp3
-rw-r--r--  1 containers containers 160559252 Aug 27 08:28 POD 69 -  The Alchemist with Dr. Tarik Peterson.mp3

@advplyr
Copy link
Owner

advplyr commented Oct 2, 2023

Ah yeah, I forgot I updated this to handle the edge case where an RSS feed has every episode named the same. In this case you will want to select the "Hard Delete" checkbox. I'll update my previous comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants