From bdb65c0759f46c8038f46aeb5248e48a3dba6068 Mon Sep 17 00:00:00 2001 From: kaliko Date: Sat, 17 Oct 2015 16:17:23 +0200 Subject: [PATCH] Fixed lastfm API use --- sima/lib/simafm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2