1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Optimization

This commit is contained in:
Krateng
2019-03-11 23:39:46 +01:00
parent e171ee1793
commit d46ba0a366
7 changed files with 31 additions and 28 deletions

View File

@ -32,11 +32,11 @@ def instructions(keys):
# get image
if filterkeys.get("track") is not None:
imgurl = getTrackInfo(filterkeys.get("track")["artists"],filterkeys.get("track")["title"]).get("image")
imgurl = getTrackInfo(filterkeys.get("track")["artists"],filterkeys.get("track")["title"],fast=True).get("image")
elif filterkeys.get("artist") is not None:
imgurl = getArtistInfo(keys.get("artist")).get("image")
imgurl = getArtistInfo(keys.get("artist"),fast=True).get("image")
elif rep is not None:
imgurl = getTrackInfo(rep["artists"],rep["title"]).get("image")
imgurl = getTrackInfo(rep["artists"],rep["title"],fast=True).get("image")
else:
imgurl = ""