fix: playcount reset to 1 on remap

This commit is contained in:
cwilvx
2024-09-08 12:08:52 +03:00
parent 30cc5bad0b
commit 3e61d86a19
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -28,10 +28,10 @@ class AlbumMapEntry:
def basetitle(self):
return self.album.base_title
def increment_playcount(self, duration: int, timestamp: int):
def increment_playcount(self, duration: int, timestamp: int, playcount: int = 1):
self.album.lastplayed = timestamp
self.album.playduration += duration
self.album.playcount += 1
self.album.playcount += playcount
def toggle_favorite_user(self, userid: int | None = None):
if userid is None: