feat: use thumbnails from folders

+ cache failed lastfm scrobbles
+ implement lastfm scrobble filter
+ change /home to /nothome
This commit is contained in:
cwilvx
2025-01-07 23:13:19 +03:00
parent 2a12487220
commit fe39cadfdc
10 changed files with 136 additions and 31 deletions
+2
View File
@@ -52,6 +52,7 @@ class Track:
image: str = ""
explicit: bool = False
fav_userids: list[int] = field(default_factory=list)
pathhash: str = ""
@property
def is_favorite(self):
@@ -81,6 +82,7 @@ class Track:
self.weakhash = create_hash(self.title, self.artists)
explicit_tag = self.extra.get("explicit", ["0"])
self.explicit = int(explicit_tag[0]) == 1
self.pathhash = create_hash(self.folder)
self.image = self.albumhash + ".webp"
self.extra = {