move stuff to .playlist

This commit is contained in:
2026-04-13 19:39:14 +02:00
parent 4a085bbb4b
commit 76a29b9569
8 changed files with 133 additions and 88 deletions
+2 -2
View File
@@ -15,8 +15,8 @@ def load_dict_from_custom_format(file_path: str | Path) -> dict[str, str]:
class Module(PlayerModule):
def __init__(self) -> None:
self.logger = log95.log95("PlayCnt", output=_log_out)
self.file = Path(__file__, "..", "..", "play_counter").resolve()
self.logger = log95.log95("PlayCnt", output=_log_out) # That sounds bad...
self.file = Path("/home/user/mixes/.playlist/count.txt").resolve()
self.counts: dict[str, int] = {}
loaded = load_dict_from_custom_format(self.file)
for k, v in loaded.items():