0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00
This commit is contained in:
KubaPro010
2025-11-06 18:54:13 +01:00
parent 9b5bffedb6
commit 2d5d899c41
3 changed files with 31 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
from . import PlayerModule, log95, Track
from . import PlayerModule, log95, Track, Popen
logger = log95.log95("PlayView")
@@ -6,7 +6,7 @@ class Module(PlayerModule):
def __init__(self) -> None:
self.playlist = []
def on_new_playlist(self, playlist: list[Track]):
self.playlist = [str(t.path) for t in playlist]
self.playlist = [str(t.path.absolute()) for t in playlist]
def on_new_track(self, index: int, track: Track):
if str(track.path) != self.playlist[index]:
# discrepancy, which means that the playing file was modified by the active modifier