mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-09-01 08:15:15 +02:00
Fix:Save library updating name only #350
This commit is contained in:
parent
964cba0491
commit
663ab2db90
2 changed files with 8 additions and 3 deletions
|
@ -97,7 +97,9 @@ class Library {
|
|||
})
|
||||
}
|
||||
|
||||
hasUpdates = newFolders.length || removedFolders.length
|
||||
if (newFolders.length || removedFolders.length) {
|
||||
hasUpdates = true
|
||||
}
|
||||
}
|
||||
if (hasUpdates) {
|
||||
this.lastUpdate = Date.now()
|
||||
|
@ -106,7 +108,8 @@ class Library {
|
|||
}
|
||||
|
||||
checkFullPathInLibrary(fullPath) {
|
||||
return this.folders.find(folder => fullPath.startsWith(folder.fullPath))
|
||||
fullPath = fullPath.replace(/\\/g, '/')
|
||||
return this.folders.find(folder => fullPath.startsWith(folder.fullPath.replace(/\\/g, '/')))
|
||||
}
|
||||
|
||||
getFolderById(id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue