From: marcelveldt Date: Sun, 13 Oct 2019 21:01:09 +0000 (+0200) Subject: Update http_streamer.py X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=18c03e72ca98582dc0e2005a61db6d832a475e24;p=music-assistant-server.git Update http_streamer.py --- 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: