Fix:Set podcast episode audio file index to 1 on scans

This commit is contained in:
advplyr 2023-07-22 09:05:43 -05:00
parent 80aea0c82d
commit d5da4441cd

View File

@ -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