fix: one-shot crash bot, #79
This commit is contained in:
parent
d00fc9306c
commit
5491f00c34
@ -59,7 +59,7 @@ class PlayList(list):
|
|||||||
logging.debug("playlist: Next into the queue")
|
logging.debug("playlist: Next into the queue")
|
||||||
|
|
||||||
if self.current_index < len(self) - 1:
|
if self.current_index < len(self) - 1:
|
||||||
if self.mode == "one-shot":
|
if self.mode == "one-shot" and self.current_index != -1:
|
||||||
super().__delitem__(self.current_index)
|
super().__delitem__(self.current_index)
|
||||||
else:
|
else:
|
||||||
self.current_index += 1
|
self.current_index += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user