mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Merge pull request #1287 from lkiesow/subpath-detection
Fix Sub-path Detection
This commit is contained in:
		
						commit
						17cce9c914
					
				@ -614,7 +614,7 @@ class Scanner {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      // Check if a library item is a subdirectory of this dir
 | 
					      // 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) {
 | 
					      if (childItem) {
 | 
				
			||||||
        Logger.warn(`[Scanner] Files were modified in a parent directory of a library item "${childItem.media.metadata.title}" - ignoring`)
 | 
					        Logger.warn(`[Scanner] Files were modified in a parent directory of a library item "${childItem.media.metadata.title}" - ignoring`)
 | 
				
			||||||
        itemGroupingResults[itemDir] = ScanResult.NOTHING
 | 
					        itemGroupingResults[itemDir] = ScanResult.NOTHING
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user