feat: remove item once played in one-shot mode. make it as close to the old version as possible, #79
This commit is contained in:
@ -59,7 +59,11 @@ class PlayList(list):
|
||||
logging.debug("playlist: Next into the queue")
|
||||
|
||||
if self.current_index < len(self) - 1:
|
||||
self.current_index += 1
|
||||
if self.mode == "one-shot":
|
||||
super().__delitem__(self.current_index)
|
||||
else:
|
||||
self.current_index += 1
|
||||
|
||||
return self[self.current_index]
|
||||
else:
|
||||
self.current_index = 0
|
||||
|
Reference in New Issue
Block a user