From e5ae21430e76af6ce1ed74abb86cb8807874c309 Mon Sep 17 00:00:00 2001 From: Groovylein Date: Mon, 22 Jan 2024 21:34:14 +0100 Subject: [PATCH] enable read from new yaml file player.yaml --- docker/docker-compose.yml | 1 - src/jukebox/components/player/plugin/__init__.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index f1b88cdf6..03191dbd5 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -37,7 +37,6 @@ services: - 5555:5555 - 5556:5556 - 5557:5557 - - 3001:3001 restart: unless-stopped tty: true volumes: diff --git a/src/jukebox/components/player/plugin/__init__.py b/src/jukebox/components/player/plugin/__init__.py index ac9a08101..b70cfce9b 100644 --- a/src/jukebox/components/player/plugin/__init__.py +++ b/src/jukebox/components/player/plugin/__init__.py @@ -17,6 +17,7 @@ logger = logging.getLogger('jb.player') cfg = jukebox.cfghandler.get_handler('jukebox') +cfg_player = jukebox.cfghandler.get_handler('player') # Background event loop in a separate thread to be used by backends as needed for asyncio tasks event_loop: asyncio.AbstractEventLoop @@ -57,6 +58,8 @@ def initialize(): global event_loop global player_arbiter global player_status + + jukebox.cfghandler.load_yaml(cfg_player, '../../shared/settings/player.yaml') # Create the event loop and start it in a background task # the event loop can be shared across different backends (if the backends require a async event loop) event_loop = asyncio.new_event_loop()