]> kaliko git repositories - mpd-sima.git/commitdiff
Fixed lastfm API use 0.14.0
authorkaliko <kaliko@azylum.org>
Sat, 17 Oct 2015 14:17:23 +0000 (16:17 +0200)
committerkaliko <kaliko@azylum.org>
Sat, 17 Oct 2015 14:17:23 +0000 (16:17 +0200)
sima/lib/simafm.py

index 267a2f74840114fb3997d7fff795fa4cbf0ddc51..033556ef24728d2587b23dbeab840d9cab75260a 100644 (file)
@@ -122,7 +122,7 @@ class SimaFM:
                     song.pop(key)
             song.update(art)
             song.update(title=song.pop('name'))
-            song.update(time=song.pop('duration'))
+            song.update(time=song.pop('duration', 0))
             yield Track(**song)
 
 # VIM MODLINE