add because you listened to artist artists

+ add artists you might like
This commit is contained in:
cwilvx
2024-11-27 10:55:11 +03:00
parent e42ec3afb5
commit 809415ddb4
6 changed files with 138 additions and 9 deletions
+2 -2
View File
@@ -184,7 +184,7 @@ def get_recently_played(
return items
def recover_recently_played_items(items: list[dict]):
def recover_items(items: list[dict]):
custom_playlists = [
{"name": "recentlyadded", "handler": get_recently_added_playlist},
{"name": "recentlyplayed", "handler": get_recently_played_playlist},
@@ -235,7 +235,7 @@ def recover_recently_played_items(items: list[dict]):
},
}
elif item["type"] == "playlist":
if item["is_custom"]:
if item.get("is_custom"):
playlist, _ = next(
i["handler"]()
for i in custom_playlists