mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-10 22:09:38 +00:00
Merge pull request #1287 from lkiesow/subpath-detection
Fix Sub-path Detection
This commit is contained in:
commit
17cce9c914
1 changed files with 1 additions and 1 deletions
|
|
@ -614,7 +614,7 @@ class Scanner {
|
|||
}
|
||||
|
||||
// Check if a library item is a subdirectory of this dir
|
||||
var childItem = this.db.libraryItems.find(li => li.path.startsWith(fullPath))
|
||||
var childItem = this.db.libraryItems.find(li => (li.path + '/').startsWith(fullPath + '/'))
|
||||
if (childItem) {
|
||||
Logger.warn(`[Scanner] Files were modified in a parent directory of a library item "${childItem.media.metadata.title}" - ignoring`)
|
||||
itemGroupingResults[itemDir] = ScanResult.NOTHING
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue