0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 13:52:00 +01:00
This commit is contained in:
KubaPro010
2025-11-13 15:54:44 +01:00
parent 26122a374a
commit b863d3c124
6 changed files with 25 additions and 35 deletions

View File

@@ -34,10 +34,9 @@ class Module(ActiveModifier):
official = True
if song.startswith("!"):
song = song[1:]
official = False # NOT FLOATINGPOINTERROR
official = False
song = Path(song).absolute()
return song, official
return Path(song).absolute(), official
if len(songs):
song, official = get_song()
@@ -61,7 +60,6 @@ class Module(ActiveModifier):
logger.info(f"Playing {song.name} instead, as instructed by toplay")
if len(songs):
# There are more tracks on the temp list
new_song, new_official = get_song(False)
@@ -93,7 +91,6 @@ class Module(ActiveModifier):
elif future.day > now.day: # late night goes mid day, as it starts at midnight
logger.warning("Skipping track as it the next day")
return (None, None), None
return (self.last_track, next_track), False
activemod = Module()