From d5da4441cd65b748d18920fd5459639738c89dd7 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 22 Jul 2023 09:05:43 -0500 Subject: [PATCH] Fix:Set podcast episode audio file index to 1 on scans --- server/scanner/MediaFileScanner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/scanner/MediaFileScanner.js b/server/scanner/MediaFileScanner.js index d4d041c6..5831ec49 100644 --- a/server/scanner/MediaFileScanner.js +++ b/server/scanner/MediaFileScanner.js @@ -289,6 +289,7 @@ class MediaFileScanner { // Update audio file metadata for audio files already there existingAudioFiles.forEach((af) => { const podcastEpisode = libraryItem.media.findEpisodeWithInode(af.ino) + af.index = 1 if (podcastEpisode?.audioFile.updateFromScan(af)) { hasUpdated = true