do not analyze external audio
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 9 May 2022 10:52:23 +0000 (12:52 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Mon, 9 May 2022 10:52:23 +0000 (12:52 +0200)
music_assistant/helpers/audio.py

index b8807a5f05c6776d935836d68aebc0e2d1e1bc28..d4932a59314923b58a3ad77f58837a1e6c5e0c66 100644 (file)
@@ -476,7 +476,7 @@ async def get_media_stream(
                 )
             )
             # send analyze job to background worker
-            if streamdetails.loudness is None:
+            if streamdetails.loudness is None and streamdetails.provider != "url":
                 uri = f"{streamdetails.provider}://{streamdetails.media_type.value}/{streamdetails.item_id}"
                 mass.add_job(
                     analyze_audio(mass, streamdetails), f"Analyze audio for {uri}"