mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-19 00:18:56 +01:00
Fix:Set podcast episode audio file index to 1 on scans
This commit is contained in:
parent
80aea0c82d
commit
d5da4441cd
@ -289,6 +289,7 @@ class MediaFileScanner {
|
|||||||
// Update audio file metadata for audio files already there
|
// Update audio file metadata for audio files already there
|
||||||
existingAudioFiles.forEach((af) => {
|
existingAudioFiles.forEach((af) => {
|
||||||
const podcastEpisode = libraryItem.media.findEpisodeWithInode(af.ino)
|
const podcastEpisode = libraryItem.media.findEpisodeWithInode(af.ino)
|
||||||
|
af.index = 1
|
||||||
if (podcastEpisode?.audioFile.updateFromScan(af)) {
|
if (podcastEpisode?.audioFile.updateFromScan(af)) {
|
||||||
hasUpdated = true
|
hasUpdated = true
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user