mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
add last fm similar artists to db table
+ add db methods for the above + try and discard last fm store
This commit is contained in:
+4
-1
@@ -100,7 +100,6 @@ def get_album_tracks(albumhash: str):
|
||||
t["_pos"] = int(f"{t['disc']}{track}")
|
||||
|
||||
tracks = sorted(tracks, key=lambda t: t["_pos"])
|
||||
tracks = [track_serializer(t, _remove={"_pos"}) for t in tracks]
|
||||
|
||||
return {"tracks": tracks}
|
||||
|
||||
@@ -164,4 +163,8 @@ def get_album_versions():
|
||||
and create_hash(og_album_title) != create_hash(a.og_title)
|
||||
]
|
||||
|
||||
for a in albums:
|
||||
tracks = TrackStore.get_tracks_by_albumhash(a.albumhash)
|
||||
a.get_date_from_tracks(tracks)
|
||||
|
||||
return {"data": albums}
|
||||
|
||||
Reference in New Issue
Block a user