1
0
mirror of https://github.com/advplyr/audiobookshelf.git synced 2025-01-30 01:38:59 +01:00

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)
}
if (track && track.syncFile(fileScanData)) {
hasUpdates = true
}
return hasUpdates
}