From 7f8b9eab5ea17d222130eb4c43f424fffce3d30d Mon Sep 17 00:00:00 2001 From: Terry Geng Date: Fri, 24 Apr 2020 09:25:05 +0800 Subject: [PATCH] feat: add interface action 'next', mentioned in #130. --- interface.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/interface.py b/interface.py index 93a8d3d..a149fdc 100644 --- a/interface.py +++ b/interface.py @@ -384,6 +384,12 @@ def post(): var.bot.clear() else: var.bot.stop() + elif action == "next": + if not var.bot.is_pause: + var.bot.interrupt() + else: + var.playlist.next() + var.bot.wait_for_ready = True elif action == "pause": var.bot.pause() elif action == "resume":