fix indexerror
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 11 Jun 2022 10:19:50 +0000 (12:19 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 11 Jun 2022 10:19:50 +0000 (12:19 +0200)
music_assistant/helpers/audio.py

index 41adbeb51e7dcc92c038b35cd61e8503b0488220..cb59054da6176f0be5a53ed499b0a6caeac16bdc 100644 (file)
@@ -169,7 +169,7 @@ async def analyze_audio(mass: MusicAssistant, streamdetails: StreamDetails) -> N
                 .split("LUFS")[0]
             )
             loudness = float(loudness_str.strip())
-        except (ValueError, AttributeError):
+        except (IndexError, ValueError, AttributeError):
             LOGGER.warning(
                 "Could not determine integrated loudness of %s - %s",
                 streamdetails.uri,