mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-07 16:04:54 +02:00
Fix:Set podcast episode audio file index to 1 on scans
This commit is contained in:
parent
80aea0c82d
commit
d5da4441cd
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue