diff --git a/server/Audiobook.js b/server/Audiobook.js index 169dcaf2..4fd2e765 100644 --- a/server/Audiobook.js +++ b/server/Audiobook.js @@ -360,11 +360,9 @@ class Audiobook { syncAudioFile(audioFile, fileScanData) { var hasUpdates = audioFile.syncFile(fileScanData) - if (hasUpdates) { - var track = this.tracks.find(t => t.ino === audioFile.ino) - if (track) { - track.syncFile(fileScanData) - } + var track = this.tracks.find(t => t.ino === audioFile.ino) + if (track && track.syncFile(fileScanData)) { + hasUpdates = true } return hasUpdates }