From b44bf60ccdaafc29afc48a12382ed3193dae10d3 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Thu, 16 Jan 2025 00:07:03 +0100 Subject: [PATCH] Fix some small typos --- music_assistant/helpers/audio.py | 5 ++--- music_assistant/providers/spotify_connect/events.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/music_assistant/helpers/audio.py b/music_assistant/helpers/audio.py index 0534b144..d2800ee4 100644 --- a/music_assistant/helpers/audio.py +++ b/music_assistant/helpers/audio.py @@ -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)): diff --git a/music_assistant/providers/spotify_connect/events.py b/music_assistant/providers/spotify_connect/events.py index 06b40bca..866fd4fa 100755 --- a/music_assistant/providers/spotify_connect/events.py +++ b/music_assistant/providers/spotify_connect/events.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python # type: ignore """Events module for Spotify Connect.""" -- 2.34.1