]> git.0d.be Git - botaradio.git/commitdiff
fix: broken pause
authorTerry Geng <gengyanda@gmail.com>
Sun, 8 Mar 2020 13:55:06 +0000 (21:55 +0800)
committerTerry Geng <gengyanda@gmail.com>
Sun, 8 Mar 2020 13:55:06 +0000 (21:55 +0800)
mumbleBot.py

index 15ac25f2c9be3f36315c3c397257e1cb7fc21c30..a7ec5ce8f803b088cdefca57808132a8fec649f6 100644 (file)
@@ -496,7 +496,7 @@ class MumbleBot:
     def pause(self):
         # Kill the ffmpeg thread
         if self.thread:
-            self.pause_at_id = var.playlist.current_item()
+            self.pause_at_id = var.playlist.current_item().id
             self.thread.kill()
             self.thread = None
         self.is_pause = True