predownload with playlist

This commit is contained in:
Azlux
2018-11-22 00:36:17 +01:00
parent d62adec9e3
commit c7d66d4a31
2 changed files with 1 additions and 120 deletions

View File

@ -490,7 +490,7 @@ class MumbleBot:
return
def async_download_next(self):
if len(var.playlist) > 0 and var.playlist[0]['type'] == 'playlist' and var.playlist[0]['next_ready'] == 'no':
if len(var.playlist) > 0 and var.playlist[0]['type'] == 'playlist' and var.playlist[0]['next_ready'] == 'validate':
th = threading.Thread(target=self.download_music, kwargs={'index': 0, 'playlist_index': var.playlist[0]["current_index"] + 1})
elif len(var.playlist) > 1 and var.playlist[1]['type'] == 'url' and var.playlist[1]['ready'] == 'no':
th = threading.Thread(target=self.download_music, kwargs={'index': 1})