From: Marcel van der Veldt Date: Wed, 15 Jan 2025 23:07:03 +0000 (+0100) Subject: Fix some small typos X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=b44bf60ccdaafc29afc48a12382ed3193dae10d3;p=music-assistant-server.git Fix some small typos --- 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."""