You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 21:53:54 +01:00
some changes, also change licence to the UNLICENCE!
This commit is contained in:
@@ -65,7 +65,7 @@ class Module(PlaylistAdvisor):
|
||||
self.custom_playlist_last_mod = Time.get_playlist_modification_time(self.custom_playlist)
|
||||
return self.custom_playlist
|
||||
elif self.custom_playlist: self.custom_playlist = None
|
||||
|
||||
|
||||
current_day, current_hour = (time := datetime.datetime.now()).strftime('%A').lower(), time.hour
|
||||
|
||||
morning_playlist = Path(playlist_dir, current_day, "morning").absolute()
|
||||
@@ -106,7 +106,7 @@ class Module(PlaylistAdvisor):
|
||||
self.last_playlist = night_playlist
|
||||
return self.last_playlist
|
||||
def new_playlist(self) -> bool:
|
||||
if self.custom_playlist and self.custom_playlist_path.exists():
|
||||
if self.custom_playlist and self.custom_playlist_path.exists():
|
||||
if Time.get_playlist_modification_time(self.custom_playlist) > self.custom_playlist_last_mod:
|
||||
logger.info("Custom playlist changed on disc, reloading...")
|
||||
self.custom_playlist = None
|
||||
|
||||
Reference in New Issue
Block a user