tweaks for spotify
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 16 Aug 2024 16:00:04 +0000 (18:00 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 16 Aug 2024 16:00:04 +0000 (18:00 +0200)
music_assistant/server/controllers/config.py
music_assistant/server/providers/spotify/bin/librespot-linux-aarch64 [changed mode: 0644->0755]
music_assistant/server/providers/spotify/bin/librespot-linux-x86_64 [changed mode: 0644->0755]
music_assistant/server/providers/ytmusic/__init__.py

index fb2cfe71442df5e297276a28e9744a03044210f0..fac362e0fb2747d9008380d2e334d3563f34d913 100644 (file)
@@ -304,7 +304,7 @@ class ConfigController:
     ) -> None:
         """Set single ProviderConfig value."""
         config = await self.get_provider_config(instance_id)
-        config.update({key: value})
+        config.update({**config.to_raw(), key: value})
         config.validate()
         conf_key = f"{CONF_PROVIDERS}/{instance_id}/values/{key}"
         self.set(conf_key, config.get_value(key))
index 1cadd66c6e739beb6398e14befa9ef46200f86f4..eccbef1382d0cccbfc93a446becc3f0970870d7f 100644 (file)
@@ -366,9 +366,9 @@ class YoutubeMusicProvider(MusicProvider):
             )
         except KeyError as ke:
             self.logger.warning("Could not load playlist: %s: %s", prov_playlist_id, ke)
-            return None
+            return []
         if "tracks" not in playlist_obj:
-            return None
+            return []
         result = []
         # TODO: figure out how to handle paging in YTM
         for index, track_obj in enumerate(playlist_obj["tracks"], 1):