feat: add interface action 'next', mentioned in #130.

This commit is contained in:
Terry Geng 2020-04-24 09:25:05 +08:00
parent d87143920c
commit 7f8b9eab5e

View File

@ -384,6 +384,12 @@ def post():
var.bot.clear() var.bot.clear()
else: else:
var.bot.stop() 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": elif action == "pause":
var.bot.pause() var.bot.pause()
elif action == "resume": elif action == "resume":