Sync tracks always

This commit is contained in:
advplyr 2021-08-25 19:32:17 -05:00
parent 1dc01615dd
commit 3141e74513

View File

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