mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-02 21:24:08 +01:00
Add:Schedule periodic library scans #655
This commit is contained in:
1 parent
0c20988e18
commit
2304f37cbe
10 files changed
+112
-20
No files matched your search
@@ -108,6 +108,9 @@ class LibraryController {
|
||||
// Update watcher
|
||||
this.watcher.updateLibrary(library)
|
||||
|
||||
// Update auto scan cron
|
||||
this.cronManager.updateLibraryScanCron(library)
|
||||
|
||||
// Remove libraryItems no longer in library
|
||||
var itemsToRemove = this.db.libraryItems.filter(li => li.libraryId === library.id && !library.checkFullPathInLibrary(li.path))
|
||||
if (itemsToRemove.length) {
|
||||
|
||||
Reference in new issue
Block a user