Fix GH-18 by only using the internal shuffled playlist when random mode is on
This commit is contained in:
parent
3a951ca948
commit
9188dcdd4b
@ -142,7 +142,7 @@ class BasePlaybackController(object):
|
|||||||
random.shuffle(self._shuffled)
|
random.shuffle(self._shuffled)
|
||||||
self._first_shuffle = False
|
self._first_shuffle = False
|
||||||
|
|
||||||
if self._shuffled:
|
if self.random and self._shuffled:
|
||||||
return self._shuffled[0]
|
return self._shuffled[0]
|
||||||
|
|
||||||
if self.current_cp_track is None:
|
if self.current_cp_track is None:
|
||||||
@ -195,7 +195,7 @@ class BasePlaybackController(object):
|
|||||||
random.shuffle(self._shuffled)
|
random.shuffle(self._shuffled)
|
||||||
self._first_shuffle = False
|
self._first_shuffle = False
|
||||||
|
|
||||||
if self._shuffled:
|
if self.random and self._shuffled:
|
||||||
return self._shuffled[0]
|
return self._shuffled[0]
|
||||||
|
|
||||||
if self.current_cp_track is None:
|
if self.current_cp_track is None:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user