reload toggle

This commit is contained in:
2026-04-12 10:58:25 +02:00
parent 6e3db6d498
commit 4a085bbb4b
2 changed files with 32 additions and 23 deletions
+5
View File
@@ -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...")