Skip to content

Commit

Permalink
fix: #806 - pressing q doesn't stops playback when in repeat mode
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtalhaasghar committed Jun 14, 2023
1 parent 2edd0dd commit 645617a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mps_youtube/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ def previous(self):

def stop(self):
self.terminate_process()
self.song_no = len(self.songlist)
raise KeyboardInterrupt
#self.song_no = len(self.songlist)

def terminate_process(self):
self.p.terminate()
Expand Down

0 comments on commit 645617a

Please sign in to comment.