mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-30 15:59:16 +02:00
dont remove non official tracks
This commit is contained in:
@@ -51,6 +51,7 @@ class Module(PlaylistModifierModule):
|
|||||||
|
|
||||||
class Module2(PlayerModule):
|
class Module2(PlayerModule):
|
||||||
def on_new_track(self, index: int, track: Track, next_track: Track | None) -> None:
|
def on_new_track(self, index: int, track: Track, next_track: Track | None) -> None:
|
||||||
|
if not track.official: return
|
||||||
played_tracks.add(track.path)
|
played_tracks.add(track.path)
|
||||||
save_played()
|
save_played()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user