audio: Switch to the Collection playlist if the current playlist has finished
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
4cdf4c528a
commit
ba06eca07f
|
@ -47,7 +47,10 @@ class Player(bass.BassPlayer):
|
|||
if track := db.user.Table.find("Previous").next_track():
|
||||
self.play_track(track, add_prev=False)
|
||||
else:
|
||||
self.play_track(self.playlist.next_track())
|
||||
if (track := self.playlist.next_track()) == None:
|
||||
self.set_playlist(db.user.Table.find("Collection"))
|
||||
track = self.playlist.next_track()
|
||||
self.play_track(track)
|
||||
|
||||
def previous(self):
|
||||
if track := db.user.Table.find("Previous").previous_track():
|
||||
|
|
Loading…
Reference in New Issue