fix(bbc_sounds): Handle library exception more gracefully (#2686)
authorKieran Hogg <kieran.hogg@gmail.com>
Wed, 26 Nov 2025 17:14:34 +0000 (17:14 +0000)
committerGitHub <noreply@github.com>
Wed, 26 Nov 2025 17:14:34 +0000 (17:14 +0000)
* Bump auntie-sounds version

* Bump auntie-sounds version

* Catch exception raised in update_play_status library call

Added error handling for updating play status.

* Use a more suitable logger.debug() call

music_assistant/providers/bbc_sounds/__init__.py
music_assistant/providers/bbc_sounds/manifest.json
requirements_all.txt

index 6fe42f2fb57927109d3b6d13c4fc4d4ae3e1338f..7969fc2ef10a8fe4cd438cf3dee282228786108a 100644 (file)
@@ -797,10 +797,13 @@ class BBCSoundsProvider(MusicProvider):
                 action = PlayStatus.PAUSED
 
             if action:
-                success = await self.client.streaming.update_play_status(
-                    pid=media_item.item_id, elapsed_time=position, action=action
-                )
-                self.logger.info(f"Updated play status: {success}")
+                try:
+                    success = await self.client.streaming.update_play_status(
+                        pid=media_item.item_id, elapsed_time=position, action=action
+                    )
+                    self.logger.debug(f"Updated play status: {success}")
+                except exceptions.APIResponseError as err:
+                    self.logger.error(f"Error updating play status: {err}")
         # Cancel now playing task
         if FEATURES["now_playing"] and not is_playing and self.current_task:
             self.current_task.cancel()
index 9065360856175ebb9669055e06003cd8133eb49b..4713693d6333ffbb1a45e3500c3b3aa767b40591 100644 (file)
@@ -8,7 +8,7 @@
     "@kieranhogg"
   ],
   "requirements": [
-    "auntie-sounds==1.1.1",
+    "auntie-sounds==1.1.3",
     "pytz==2025.2"
   ],
   "multi_instance": false
index 28a9120f5280fde336e5fc7c01d0bcd00b51299b..70303966abc250c491df3bf16f52a9f5e34333a1 100644 (file)
@@ -18,7 +18,7 @@ aiovban>=0.6.3
 alexapy==1.29.10
 async-upnp-client==0.45.0
 audible==0.10.0
-auntie-sounds==1.1.1
+auntie-sounds==1.1.3
 bidict==0.23.1
 certifi==2025.11.12
 chardet>=5.2.0