fix: launch_music didn't wait for downloading #89

This commit is contained in:
Terry Geng
2020-03-03 10:11:42 +08:00
parent 61497b1ecb
commit 28320ddfe5
4 changed files with 31 additions and 16 deletions

View File

@ -114,6 +114,11 @@ class PlayList(list):
def current_item(self):
return self[self.current_index]
def current_item_downloading(self):
if self[self.current_index]['type'] == 'url' and self[self.current_index]['ready'] == 'downloading':
return True
return False
def next_index(self):
if len(self) == 0:
return False