fix: index error when changing playmode

This commit is contained in:
Terry Geng 2020-05-27 09:21:45 +08:00
parent 266a17617d
commit d3ed96a81a
No known key found for this signature in database
GPG Key ID: F982F8EA1DF720E7

View File

@ -10,8 +10,9 @@ from database import Condition
from media.item import ValidationFailedError, PreparationFailedError
def get_playlist(mode, _list=None, index=None):
if _list and index is None:
def get_playlist(mode, _list=None, _index=None):
index = -1
if _list and _index is None:
index = _list.current_index
if _list is None: