Skip to content

Commit

Permalink
Merge pull request #36 from Jugran/fix/default-lyrics-command
Browse files Browse the repository at this point in the history
fix default lyrics command flow after #35
  • Loading branch information
Jugran authored Mar 4, 2024
2 parents fc424f1 + 389e4ad commit 8231559
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lyrics/lyrics_in_terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def init_pager(stdscr):

interval = defaults['interval']
source = defaults['source']
mpd_connect = [defaults['mpd_host'], defaults['mpd_port'], defaults['mpd_pass']]
mpd_connect = [defaults['mpd_host'],
defaults['mpd_port'], defaults['mpd_pass']]

player = Player(player_name, source, autoswitch, mpd_connect, align=align)
win = Window(stdscr, player, timeout=interval)
Expand Down Expand Up @@ -76,8 +77,9 @@ def main():
print(track.get_text())

exit(0)
else:
init_pager()

init_pager()


if __name__ == "__main__":
main()

0 comments on commit 8231559

Please sign in to comment.