diff --git a/modules/play_counter.py b/modules/play_counter.py index 442af68..c8016df 100644 --- a/modules/play_counter.py +++ b/modules/play_counter.py @@ -33,6 +33,6 @@ class Module(PlayerModule): except Exception as e: self.logger.error(f"Failed to write play counts: {e}") def on_new_track(self, index: int, track: Track, next_track: Track | None) -> None: self.counts[track.path.as_posix()] = self.counts.get(track.path.as_posix(), 0) + 1 - if sum(self.counts.values()) % 10 == 0: self._save_counts() + if sum(self.counts.values()) % 3 == 0: self._save_counts() module = Module() \ No newline at end of file