mirror of
				https://github.com/owntone/owntone-server.git
				synced 2025-10-29 15:55:02 -04:00 
			
		
		
		
	[artwork] Don't make online artwork searches if artist/album starts with "unknown"
This commit is contained in:
		
							parent
							
								
									024aadfe0a
								
							
						
					
					
						commit
						158b043f55
					
				| @ -1166,6 +1166,13 @@ online_source_request_url_make(char *url, size_t url_size, const struct online_s | |||||||
|       goto error; |       goto error; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |   if ((artist && strncasecmp("unknown", artist, strlen("unknown")) == 0) || | ||||||
|  |       (album && strncasecmp("unknown", album, strlen("unknown")) == 0) ) | ||||||
|  |     { | ||||||
|  |       DPRINTF(E_DBG, L_ART, "Skipping online artwork search for unknown artist/album\n"); | ||||||
|  |       goto error; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|   for (i = 0; src->query_parts[i].key; i++) |   for (i = 0; src->query_parts[i].key; i++) | ||||||
|     { |     { | ||||||
|       if (!album && strstr(src->query_parts[i].template, "$ALBUM$")) |       if (!album && strstr(src->query_parts[i].template, "$ALBUM$")) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user