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=refs%2Ftags%2F0.14.0;hp=1c01e4a7aa37eeef825c6918fc90b154a7f4ccc7;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