mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-11-03 19:07:00 -05:00 
			
		
		
		
	check if cleantitle and cleanauthor are different
This commit is contained in:
		
							parent
							
								
									edc712e6f6
								
							
						
					
					
						commit
						d31ec055f9
					
				@ -209,9 +209,13 @@ class BookFinder {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!books.length && !options.currentlyTryingCleaned) {
 | 
					    if (!books.length && !options.currentlyTryingCleaned) {
 | 
				
			||||||
 | 
					      var cleanedTitle = this.cleanTitleForCompares(title)
 | 
				
			||||||
 | 
					      var cleanedAuthor = this.cleanAuthorForCompares(author)
 | 
				
			||||||
 | 
					      if (cleanedTitle == title && cleanedAuthor == author) return books
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      Logger.debug(`Book Search, no matches.. checking cleaned title and author`)
 | 
					      Logger.debug(`Book Search, no matches.. checking cleaned title and author`)
 | 
				
			||||||
      options.currentlyTryingCleaned = true
 | 
					      options.currentlyTryingCleaned = true
 | 
				
			||||||
      return this.search(provider, this.cleanTitleForCompares(title), this.cleanAuthorForCompares(author), isbn, asin, options)
 | 
					      return this.search(provider, cleanedTitle, cleanedAuthor, isbn, asin, options)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (["google", "audible", "itunes"].includes(provider)) return books
 | 
					    if (["google", "audible", "itunes"].includes(provider)) return books
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user