Skip to content

Commit

Permalink
enable read from new yaml file player.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Groovylein committed Jan 22, 2024
1 parent 8be8ade commit e5ae214
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ services:
- 5555:5555
- 5556:5556
- 5557:5557
- 3001:3001
restart: unless-stopped
tty: true
volumes:
Expand Down
3 changes: 3 additions & 0 deletions src/jukebox/components/player/plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit e5ae214

Please sign in to comment.