fix search to read from database

This commit is contained in:
geoffrey45
2022-06-16 09:36:42 +03:00
parent 88247e0553
commit 79a7161827
12 changed files with 67 additions and 64 deletions
+2 -1
View File
@@ -91,6 +91,7 @@ def get_albumartists():
for track in tracks:
for artist in track.artists:
artist = artist.lower()
if artist not in artists:
artists.append(artist)
@@ -98,7 +99,7 @@ def get_albumartists():
for artist in artists:
artist_obj = {
"name": artist,
"image": helpers.check_artist_image(artist),
"image": helpers.check_artist_image(helpers.create_safe_name(artist)),
}
final_artists.append(artist_obj)