fix: random will not delete current song. changed one-shot icon.#79

This commit is contained in:
Terry Geng
2020-02-27 09:58:49 +08:00
parent 020ddbca22
commit 7800bd3639
5 changed files with 12 additions and 18 deletions

View File

@ -607,12 +607,12 @@ class MumbleBot:
def stop(self):
# stop and move to the next item in the playlist
self.is_pause = True
self.kill_ffmpeg()
self.interrupt_playing()
self.playhead = 0
var.playlist.next()
logging.info("bot: music stopped.")
def kill_ffmpeg(self):
def interrupt_playing(self):
# Kill the ffmpeg thread
if self.thread:
self.thread.kill()