From 18c03e72ca98582dc0e2005a61db6d832a475e24 Mon Sep 17 00:00:00 2001 From: marcelveldt Date: Sun, 13 Oct 2019 23:01:09 +0200 Subject: [PATCH] Update http_streamer.py --- music_assistant/http_streamer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/music_assistant/http_streamer.py b/music_assistant/http_streamer.py index f2b35e8e..966eb207 100755 --- a/music_assistant/http_streamer.py +++ b/music_assistant/http_streamer.py @@ -9,7 +9,6 @@ import threading import urllib from memory_tempfile import MemoryTempfile import io -import pyloudnorm as pyln import aiohttp from .utils import LOGGER, try_parse_int, get_ip, run_async_background_task, run_periodic, get_folder_size from .models.media_types import TrackQuality, MediaType @@ -397,8 +396,9 @@ class HTTPStreamer(): # calculate BS.1770 R128 integrated loudness try: import soundfile as sf + import pyloudnorm as pyln except Exception as exc: - LOGGER.exception("Could not import soundfile, skip analyze job") + LOGGER.exception("Could not import soundfile or pyloudnorm, skip analyze job - %s" % str(exc)) return if track_loudness == None: with io.BytesIO(audio_data) as tmpfile: -- 2.34.1