feat: add interface action 'next', mentioned in #130.
This commit is contained in:
parent
d87143920c
commit
7f8b9eab5e
@ -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":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user