Fix some small typos
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 15 Jan 2025 23:07:03 +0000 (00:07 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 15 Jan 2025 23:07:03 +0000 (00:07 +0100)
music_assistant/helpers/audio.py
music_assistant/providers/spotify_connect/events.py

index 0534b144ea63b1fad67ba8747c79b6f87820b364..d2800ee456e387067071fb5adf141b9859e8e507 100644 (file)
@@ -410,12 +410,11 @@ async def get_media_stream(
         # parse loudnorm data if we have that collected (and enabled)
         if (
             (streamdetails.loudness is None or finished)
-            and streamdetails.volume_normalization_mode
-            in (VolumeNormalizationMode.DYNAMIC, VolumeNormalizationMode.FALLBACK_DYNAMIC)
+            and streamdetails.volume_normalization_mode == VolumeNormalizationMode.DYNAMIC
             and (finished or (seconds_streamed >= 300))
         ):
             # if dynamic volume normalization is enabled and the entire track is streamed
-            # the loudnorm filter will output the measuremeet in the log,
+            # the loudnorm filter will output the measurement in the log,
             # so we can use those directly instead of analyzing the audio
             logger.log(VERBOSE_LOG_LEVEL, "Collecting loudness measurement...")
             if loudness_details := parse_loudnorm(" ".join(ffmpeg_proc.log_history)):
index 06b40bcad691ab99b3e7978572815895e49dce39..866fd4fa3885fa494e819cf9df31bed7d2941198 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python
 # type: ignore
 """Events module for Spotify Connect."""