From: kaliko Date: Sat, 17 Oct 2015 14:17:23 +0000 (+0200) Subject: Fixed lastfm API use X-Git-Tag: 0.14.0 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=33a207ae6c87c69c57197406b06f64f812b02759;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