Add logs when sanitizing filename and update podcast episode download to set targetFilename on init #4121
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Build and Push Docker Image / build (push) Waiting to run
Integration Test / build and test (push) Waiting to run
Run Unit Tests / Run Unit Tests (push) Waiting to run

This commit is contained in:
advplyr 2025-03-19 17:39:23 -05:00
parent 7d0f61663e
commit 92bb3527de
3 changed files with 32 additions and 6 deletions

View file

@ -108,7 +108,7 @@ class PodcastManager {
// e.g. "/tagesschau 20 Uhr.mp3" becomes "/tagesschau 20 Uhr (ep_asdfasdf).mp3"
// this handles podcasts where every title is the same (ref https://github.com/advplyr/audiobookshelf/issues/1802)
if (await fs.pathExists(this.currentDownload.targetPath)) {
this.currentDownload.appendRandomId = true
this.currentDownload.setAppendRandomId(true)
}
// Ignores all added files to this dir