Skip to content

Commit

Permalink
Fix purge_track() and test_progress() after TauonPlaylist migration
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Mar 3, 2025
1 parent 27d3d3f commit b1e9e1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tauon/t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2407,9 +2407,9 @@ def purge_track(self, track_id: int, fast: bool = False) -> None:
# Remove from all playlists
if not fast:
for playlist in self.multi_playlist:
while track_id in playlist.playlist:
while track_id in playlist.playlist_ids:
album_dex.clear()
playlist.playlist.remove(track_id)
playlist.playlist_ids.remove(track_id)
# Stop if track is playing track
if self.track_queue and self.track_queue[self.queue_step] == track_id and self.playing_state != 0:
self.stop(block=True)
Expand Down Expand Up @@ -2520,7 +2520,7 @@ def test_progress(self) -> None:
self.jump(pp[i], i, jump=False)

elif prefs.playback_follow_cursor and self.playing_ready() \
and self.multi_playlist[self.active_playlist_viewing].playlist[
and self.multi_playlist[self.active_playlist_viewing].playlist_ids[
self.selected_in_playlist] != self.playing_object().index \
and -1 < self.selected_in_playlist < len(default_playlist):

Expand Down

0 comments on commit b1e9e1f

Please sign in to comment.