mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
store playcount and duration on the track table
+ allow sorting all items with those two + add methods to update scrobble info
This commit is contained in:
@@ -29,6 +29,9 @@ class Album:
|
||||
title: str
|
||||
trackcount: int
|
||||
is_favorite: bool
|
||||
lastplayed: int
|
||||
playcount: int
|
||||
playduration: int
|
||||
extra: dict
|
||||
|
||||
type: str = "album"
|
||||
|
||||
@@ -48,6 +48,9 @@ class Artist:
|
||||
name: str
|
||||
trackcount: int
|
||||
is_favorite: bool
|
||||
lastplayed: int
|
||||
playcount: int
|
||||
playduration: int
|
||||
extra: dict
|
||||
|
||||
image: str = ""
|
||||
|
||||
@@ -29,6 +29,9 @@ class Track:
|
||||
track: int
|
||||
trackhash: str
|
||||
extra: dict
|
||||
lastplayed: int
|
||||
playcount: int
|
||||
playduration: int
|
||||
|
||||
is_favorite: bool = False
|
||||
_pos: int = 0
|
||||
|
||||
Reference in New Issue
Block a user