mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
try: fix search
This commit is contained in:
@@ -35,6 +35,7 @@ class Album:
|
||||
id: int = -1
|
||||
type: str = "album"
|
||||
image: str = ""
|
||||
_score: float = 0
|
||||
versions: list[str] = dataclasses.field(default_factory=list)
|
||||
fav_userids: list[int] = dataclasses.field(default_factory=list)
|
||||
weakhash: str = ""
|
||||
|
||||
@@ -54,6 +54,7 @@ class Artist:
|
||||
|
||||
id: int = -1
|
||||
image: str = ""
|
||||
_score: float = 0
|
||||
|
||||
color: str = ""
|
||||
fav_userids: list[int] = dataclasses.field(default_factory=list)
|
||||
|
||||
@@ -27,7 +27,7 @@ class Playlist:
|
||||
has_image: bool = False
|
||||
images: list[dict[str, str]] = dataclasses.field(default_factory=list)
|
||||
pinned: bool = False
|
||||
|
||||
_score: float = 0
|
||||
def __post_init__(self):
|
||||
self.count = len(self.trackhashes)
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ class Track:
|
||||
_pos: int = 0
|
||||
_ati: str = ""
|
||||
image: str = ""
|
||||
_score: float = 0
|
||||
explicit: bool = False
|
||||
fav_userids: list[int] = field(default_factory=list)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user