Skip to content

Commit

Permalink
Don't remove tracks that are not in list
Browse files Browse the repository at this point in the history
  • Loading branch information
luzip665 committed May 12, 2024
1 parent d6f79b8 commit 97d1e5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xl/player/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ def get_next(self):
track = self._calculate_next_track()
if track is not None:
return track
if self.__remove_item_after_playback and len(self) == 1:
#pop the last track
self.pop(0)
if self.current_playlist is not self:
return self.current_playlist.get_next()
elif self.last_playlist is not None:
Expand Down

0 comments on commit 97d1e5b

Please sign in to comment.