mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Merge pull request #485 from selfhost-alt/fix-scan-error
Update folder update logic to use new media path name
This commit is contained in:
		
						commit
						a47b0bce57
					
				@ -518,7 +518,7 @@ class Scanner {
 | 
				
			|||||||
      var altDir = `${itemDir}/${firstNest}`
 | 
					      var altDir = `${itemDir}/${firstNest}`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      var fullPath = Path.posix.join(folder.fullPath.replace(/\\/g, '/'), itemDir)
 | 
					      var fullPath = Path.posix.join(folder.fullPath.replace(/\\/g, '/'), itemDir)
 | 
				
			||||||
      var childLibraryItem = this.db.libraryItems.find(li => li.path !== fullPath && li.fullPath.startsWith(fullPath))
 | 
					      var childLibraryItem = this.db.libraryItems.find(li => li.path !== fullPath && li.path.startsWith(fullPath))
 | 
				
			||||||
      if (!childLibraryItem) {
 | 
					      if (!childLibraryItem) {
 | 
				
			||||||
        continue;
 | 
					        continue;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user