minor fixes
This commit is contained in:
parent
d51ec760e3
commit
4d643eb22b
2 changed files with 8 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<addon id="plugin.audio.librespot" version="0.1.0" name="Librespot" provider-name="Cere">
|
||||
<addon id="plugin.audio.librespot" version="0.1.1" name="Librespot" provider-name="Cere">
|
||||
<requires>
|
||||
<import addon="xbmc.python" version="3.0.0" />
|
||||
<import addon="xbmc.addon" version="18.9.701" />
|
||||
|
|
|
@ -256,7 +256,7 @@ class PluginContent:
|
|||
limus.setYear(track["year"])
|
||||
limus.setTrack(track["track_number"])
|
||||
limus.setArtist(track["artist"])
|
||||
limus.setRating(track["rating"])
|
||||
limus.setRating(float(track["rating"]))
|
||||
limus.setDuration(duration)
|
||||
|
||||
li.setArt({"thumb": track["thumb"]})
|
||||
|
@ -872,9 +872,12 @@ class PluginContent:
|
|||
continue
|
||||
|
||||
artists = []
|
||||
try:
|
||||
for artist in track["artists"]:
|
||||
artists.append(artist["name"])
|
||||
track["artist"] = " / ".join(artists)
|
||||
except:
|
||||
track['artist'] = track["artists"][0]
|
||||
track["artistid"] = track["artists"][0]["id"]
|
||||
|
||||
track["genre"] = " / ".join(track["album"].get("genres", []))
|
||||
|
|
Loading…
Reference in a new issue