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

Closed
opened 2026-04-24 23:44:04 +02:00 by adam · 7 comments
Owner

Originally created by @davidmgrantham on GitHub (Sep 19, 2023).

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

Originally created by @davidmgrantham on GitHub (Sep 19, 2023). ### 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. <img width="339" alt="dups" src="https://github.com/advplyr/audiobookshelf/assets/7535078/0916673c-1319-4dc7-b450-b769be64af82"> ### 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
adam added the bug label 2026-04-24 23:44:04 +02:00
adam closed this issue 2026-04-24 23:44:04 +02:00
Author
Owner

@advplyr commented on GitHub (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

@advplyr commented on GitHub (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](https://github.com/advplyr/audiobookshelf/assets/67830747/9b803f3e-0549-4059-b1ab-9a2c10456c1a)
Author
Owner

@KrzaQ commented on GitHub (Sep 27, 2023):

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

@KrzaQ commented on GitHub (Sep 27, 2023): Can we somehow remove duplicates from already downloaded podcasts? I don't fancy re-downloading some with over 1000 episodes.
Author
Owner

@advplyr commented on GitHub (Oct 1, 2023):

Fixed in v2.4.4

@advplyr commented on GitHub (Oct 1, 2023): Fixed in [v2.4.4](https://github.com/advplyr/audiobookshelf/releases/tag/v2.4.4)
Author
Owner

@advplyr commented on GitHub (Oct 1, 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 commented on GitHub (Oct 1, 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](https://github.com/advplyr/audiobookshelf/assets/67830747/03f92f2a-c9d0-46c3-9e78-f8f4fef56491) ![image](https://github.com/advplyr/audiobookshelf/assets/67830747/2f611924-6dd2-433f-a512-179f17852cc4) If you are familiar with sqlite you could spin your server down and delete those from the `podcastEpisodes` table
Author
Owner

@advplyr commented on GitHub (Oct 1, 2023):

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

@advplyr commented on GitHub (Oct 1, 2023): The fix I made is to stop duplicates from being created when downloading new episodes
Author
Owner

@seitzbg commented on GitHub (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
@seitzbg commented on GitHub (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 ```
Author
Owner

@advplyr commented on GitHub (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

@advplyr commented on GitHub (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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1396