Fix custom name & image for manually added radio URL's (#2583)
authorOzGav <gavnosp@hotmail.com>
Sun, 2 Nov 2025 18:51:17 +0000 (04:51 +1000)
committerGitHub <noreply@github.com>
Sun, 2 Nov 2025 18:51:17 +0000 (19:51 +0100)
music_assistant/controllers/music.py

index 8c1d889352cfb2ab030306dfce9a6f286e1e10a2..29493bc05686c857c8b0b5b6bf3bdcd4c6aa36f1 100644 (file)
@@ -671,6 +671,11 @@ class MusicController(CoreController):
         # ensure we have a full item
         if isinstance(item, str):
             full_item = await self.get_item_by_uri(item)
+        # For builtin provider (manual URLs), use the provided item directly
+        # to preserve custom modifications (name, images, etc.)
+        # For other providers, fetch fresh to ensure data validity
+        elif item.provider == "builtin":
+            full_item = item
         else:
             full_item = await self.get_item(
                 item.media_type,