From: kaliko Date: Sat, 17 Oct 2015 14:17:23 +0000 (+0200) Subject: Fixed lastfm API use X-Git-Tag: 0.14.0^0 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=bdb65c0759f46c8038f46aeb5248e48a3dba6068;p=mpd-sima.git Fixed lastfm API use --- diff --git a/sima/lib/simafm.py b/sima/lib/simafm.py index 267a2f7..033556e 100644 --- a/sima/lib/simafm.py +++ b/sima/lib/simafm.py @@ -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