mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Add: log custom metadata provider to match other providers
This commit is contained in:
		
							parent
							
								
									19a65dba98
								
							
						
					
					
						commit
						4662fc5244
					
				@ -41,6 +41,9 @@ class CustomProviderAdapter {
 | 
			
		||||
    }
 | 
			
		||||
    const queryString = new URLSearchParams(queryObj).toString()
 | 
			
		||||
 | 
			
		||||
    const url = `${provider.url}/search?${queryString}`
 | 
			
		||||
    Logger.debug(`[CustomMetadataProvider] Search url: ${url}`)
 | 
			
		||||
 | 
			
		||||
    // Setup headers
 | 
			
		||||
    const axiosOptions = {
 | 
			
		||||
      timeout
 | 
			
		||||
@ -52,7 +55,7 @@ class CustomProviderAdapter {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const matches = await axios
 | 
			
		||||
      .get(`${provider.url}/search?${queryString}`, axiosOptions)
 | 
			
		||||
      .get(url, axiosOptions)
 | 
			
		||||
      .then((res) => {
 | 
			
		||||
        if (!res?.data || !Array.isArray(res.data.matches)) return null
 | 
			
		||||
        return res.data.matches
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user