diff --git a/jellyfin/client.py b/jellyfin/client.py index 2eb84d7..d617bd0 100644 --- a/jellyfin/client.py +++ b/jellyfin/client.py @@ -367,8 +367,8 @@ class JellyfinClient: raise Exception(f"Failed to download image from Spotify: {response.content}") # Step 2: Check the image content type (assume it's JPEG or PNG based on the content type from the response) - content_type = response.headers.get('Content-Type') - if content_type not in ['image/jpeg', 'image/png', 'application/octet-stream']: + content_type = response.headers.get('Content-Type').lower() + if content_type not in ['image/jpeg', 'image/png', 'image/webp', 'application/octet-stream']: raise Exception(f"Unsupported image format: {content_type}") # Todo: if content_type == 'application/octet-stream': @@ -622,4 +622,4 @@ class JellyfinClient: similarity = (1 - best_score) * 100 # Convert to percentage - return similarity, best_offset \ No newline at end of file + return similarity, best_offset