mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-29 15:29:14 +02:00
reload toggle
This commit is contained in:
@@ -117,6 +117,11 @@ class Module(PlaylistAdvisor):
|
||||
|
||||
if not self.last_playlist: return True
|
||||
|
||||
reload_state = (playlist_dir / "reload")
|
||||
if reload_state.exists():
|
||||
reload_state.unlink(True)
|
||||
return True
|
||||
|
||||
if check_if_playlist_modifed(self.last_playlist): return True
|
||||
if Time.get_playlist_modification_time(self.last_playlist) > self.last_mod_time:
|
||||
logger.info("Playlist changed on disc, reloading...")
|
||||
|
||||
Reference in New Issue
Block a user