mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Sync tracks always
This commit is contained in:
parent
1dc01615dd
commit
3141e74513
@ -360,11 +360,9 @@ class Audiobook {
|
|||||||
|
|
||||||
syncAudioFile(audioFile, fileScanData) {
|
syncAudioFile(audioFile, fileScanData) {
|
||||||
var hasUpdates = audioFile.syncFile(fileScanData)
|
var hasUpdates = audioFile.syncFile(fileScanData)
|
||||||
if (hasUpdates) {
|
var track = this.tracks.find(t => t.ino === audioFile.ino)
|
||||||
var track = this.tracks.find(t => t.ino === audioFile.ino)
|
if (track && track.syncFile(fileScanData)) {
|
||||||
if (track) {
|
hasUpdates = true
|
||||||
track.syncFile(fileScanData)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return hasUpdates
|
return hasUpdates
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user