Skip to content

Commit

Permalink
fix: bad utils.get_config_action invocations (#2339)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffie authored Apr 15, 2024
1 parent fa110b4 commit 33fec64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/jukebox/components/playermpd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,20 +159,23 @@ def __init__(self):
self.end_of_playlist_next_action = utils.get_config_action(cfg,
'playermpd',
'end_of_playlist_next_action',
'none',
{'rewind': self.rewind,
'stop': self.stop,
'none': lambda: None},
logger)
self.stopped_prev_action = utils.get_config_action(cfg,
'playermpd',
'stopped_prev_action',
'prev',
{'rewind': self.rewind,
'prev': self._prev_in_stopped_state,
'none': lambda: None},
logger)
self.stopped_next_action = utils.get_current_song(cfg,
self.stopped_next_action = utils.get_config_action(cfg,
'playermpd',
'stopped_next_action',
'next',
{'rewind': self.rewind,
'next': self._next_in_stopped_state,
'none': lambda: None},
Expand Down

0 comments on commit 33fec64

Please sign in to comment.