Merge pull request #44 from BafDyce/fix-now-playing

Update 'now playing' info when music stops playing
This commit is contained in:
Fabian Würfl 2018-06-02 17:39:36 +02:00 committed by GitHub
commit e9ed215a64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -313,7 +313,7 @@ class MumbleBot:
var.current_music = [var.playlist[0][0], var.playlist[0][1], None, None]
var.playlist.pop(0)
self.launch_next()
elif len(var.playlist) == 0 and var.current_music:
else:
var.current_music = None
while self.mumble.sound_output.get_buffer_size() > 0: