Fix Spotify CDN issues on playback (#2317)
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 10 Aug 2025 21:14:08 +0000 (23:14 +0200)
committerGitHub <noreply@github.com>
Sun, 10 Aug 2025 21:14:08 +0000 (23:14 +0200)
Fix spotify CDN issues on playback

music_assistant/providers/spotify/__init__.py
music_assistant/providers/spotify/bin/librespot-linux-aarch64
music_assistant/providers/spotify/bin/librespot-linux-x86_64
music_assistant/providers/spotify/bin/librespot-macos-arm64

index 2ef15b3ea3da6b92e934842aa667ffe58113fb16..3d294918ee898edf2e2dfd516f12a44a1fa0b653 100644 (file)
@@ -598,16 +598,17 @@ class SpotifyProvider(MusicProvider):
 
         # we retry twice in case librespot fails to start
         for attempt in (1, 2):
+            log_librespot = self.logger.isEnabledFor(VERBOSE_LOG_LEVEL) or attempt == 2
             async with AsyncProcess(
                 args,
                 stdout=True,
-                stderr=None if self.logger.isEnabledFor(VERBOSE_LOG_LEVEL) else False,
+                stderr=None if log_librespot else False,
                 name="librespot",
             ) as librespot_proc:
                 # get first chunk with timeout, to catch the issue where librespot is not starting
                 # which seems to happen from time to time (but rarely)
                 try:
-                    chunk = await asyncio.wait_for(librespot_proc.read(64000), timeout=5 * attempt)
+                    chunk = await asyncio.wait_for(librespot_proc.read(64000), timeout=10 * attempt)
                     if not chunk:
                         raise AudioError
                     yield chunk
index 4c506279452cf6185c8710426a704a6bbf68050b..6990a359e96c3ecfc7b23ed9da74308904bf16f0 100755 (executable)
Binary files a/music_assistant/providers/spotify/bin/librespot-linux-aarch64 and b/music_assistant/providers/spotify/bin/librespot-linux-aarch64 differ
index 07ccea57193a007c8510585d79e6731b8ceb9a83..b96491a91b8631c6047c742cfb6b7a360801ca39 100755 (executable)
Binary files a/music_assistant/providers/spotify/bin/librespot-linux-x86_64 and b/music_assistant/providers/spotify/bin/librespot-linux-x86_64 differ
index 1dd55417743765566b8412f51bd707eb8fb6b2df..a821f1f44385155401b3ec46747c70468896fc87 100755 (executable)
Binary files a/music_assistant/providers/spotify/bin/librespot-macos-arm64 and b/music_assistant/providers/spotify/bin/librespot-macos-arm64 differ