fix typos
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 27 Mar 2023 07:57:44 +0000 (09:57 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 27 Mar 2023 07:57:44 +0000 (09:57 +0200)
music_assistant/server/controllers/metadata.py

index b24e84cdea297f945481865af5a4abc94be6b9b5..7527f04f82e35c7cf8af4ea9969977c9c800da3b 100755 (executable)
@@ -277,9 +277,9 @@ class MetaDataController:
                 if img.provider != "url" and resolve:
                     # return imageproxy url for images that need to be resolved
                     # the original path is double encoded
-                    encoded_url = urllib.parse.quote(urllib.parse.quote(img.url))
+                    encoded_url = urllib.parse.quote(urllib.parse.quote(img.path))
                     return f"{self.mass.webserver.base_url}/imageproxy?path={encoded_url}"
-                return img.url
+                return img.path
 
         # retry with track's album
         if media_item.media_type == MediaType.TRACK and media_item.album: