mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
rewrite album and artist stores using in-mem hashmap stores
This commit is contained in:
+1
-1
@@ -14,7 +14,6 @@ class Album:
|
||||
Creates an album object
|
||||
"""
|
||||
|
||||
id: int
|
||||
albumartists: list[dict[str, str]]
|
||||
albumhash: str
|
||||
artisthashes: list[str]
|
||||
@@ -34,6 +33,7 @@ class Album:
|
||||
playduration: int
|
||||
extra: dict
|
||||
|
||||
id: int = -1
|
||||
type: str = "album"
|
||||
image: str = ""
|
||||
versions: list[str] = dataclasses.field(default_factory=list)
|
||||
|
||||
@@ -36,7 +36,6 @@ class Artist:
|
||||
Artist class
|
||||
"""
|
||||
|
||||
id: str
|
||||
name: str
|
||||
albumcount: int
|
||||
artisthash: str
|
||||
@@ -53,6 +52,7 @@ class Artist:
|
||||
playduration: int
|
||||
extra: dict
|
||||
|
||||
id: int = -1
|
||||
image: str = ""
|
||||
|
||||
def __post_init__(self):
|
||||
|
||||
Reference in New Issue
Block a user