Repository: advplyr/audiobookshelf

Issue #2672: [Bug]: Users able to add and download duplicate podcast episodes to queue
Created: 2024-02-27T03:54:34Z
Describe the issue
Users can mark the same episode for download multiple times using the "Find Episodes" modal. This adds the episode to the queue multiple times and results in duplicate files being downloaded and added to the podcast. A check against the queue before adding should be sufficient to fix this issue, or ensuring the queue has unique entries.
Download Queue:

Podcast Episodes with library item ID in the filename:

Podcast Files

Steps to reproduce the issue

Select a podcast episode to download using the "Find Episodes" modal
Add one or more episodes to the download queue
Open the "Find Episodes" modal again and select episodes add to the queue again

Audiobookshelf version
2.8.0
How are you running audiobookshelf?
Docker

Duplicate issue #3718: [Bug]: Podcasts downloading multiple files
Created: 2024-12-14T18:08:24Z
What happened?
When manually getting new episodes to download, its almost as audio bookshelf does not recognize there already is a file / episode and it downloads again with a rather long random string to the filename, in some cases.

What did you expect to happen?
To recognize existing episodes and now re-download.   (image shows another instance of multiple files )

Steps to reproduce the issue

Edit Podcast
Go to Episodes.
Change date back to ~ couple years to decades.
Set limit to anything from 3 - 3,000
Click the check new downloads

Audiobookshelf version
v2.17.5
How are you running audiobookshelf?
Docker
What OS is your Audiobookshelf server hosted from?
Windows
If the issue is being seen in the UI, what browsers are you seeing the problem on?
None
Logs
{"timestamp":"2024-12-14 17:15:27.717","source":"LibraryItem.js:398","message":"[LibraryItem] Library item \"bfb226be-9484-4254-8572-91b76a53cd21\" updated","levelName":"INFO","level":2}
{"timestamp":"2024-12-14 17:15:27.726","source":"PodcastManager.js:136","message":"[PodcastManager] Successfully downloaded podcast episode \"2017-02-12-conspiracy-podcast-part1\"","levelName":"INFO","level":2}
{"timestamp":"2024-12-14 17:15:37.676","source":"LibraryItem.js:398","message":"[LibraryItem] Library item \"bfb226be-9484-4254-8572-91b76a53cd21\" updated","levelName":"INFO","level":2}
{"timestamp":"2024-12-14 17:15:37.687","source":"PodcastManager.js:136","message":"[PodcastManager] Successfully downloaded podcast episode \"2017-02-05-conspiracy-podcast\"","levelName":"INFO","level":2}
{"timestamp":"2024-12-14 17:15:47.691","source":"LibraryItem.js:398","message":"[LibraryItem] Library item \"bfb226be-9484-4254-8572-91b76a53cd21\" updated","levelName":"INFO","level":2}
{"timestamp":"2024-12-14 17:15:47.702","source":"PodcastManager.js:136","message":"[PodcastManager] Successfully downloaded podcast episode \"2017-01-29-conspiracy-podcast-part1\"","levelName":"INFO","level":2}
Additional Notes
Running on Synology NAS in Docker w/ most recent DSM

Closing comment (2024-12-14T20:15:15Z): To clarify, is the auto download schedule triggering again before finishing downloading episodes? That could happen depending on how often you are checking for downloads, how many are downloaded per check, and your download speed.
Related to #2672