fix: still one-shot

This commit is contained in:
Terry Geng
2020-03-08 19:55:41 +08:00
parent f7042db657
commit 091d303729
3 changed files with 16 additions and 19 deletions

View File

@ -354,9 +354,6 @@ class OneshotPlaylist(BasePlaylist):
return self
def next(self):
if len(self) == 0:
return False
self.version += 1
if len(self) > 0:
@ -366,10 +363,10 @@ class OneshotPlaylist(BasePlaylist):
return False
else:
self.current_index = 0
return self[0]
return self[0]
else:
self.clear()
self.current_index = -1
return False
def next_index(self):