Package: mpd-sima Version: 0.14.1-2 Severity: important Tags: patch upstream
Dear Maintainer, * What led up to the situation? Running mpd-sima on MPD server >= 0.20 * What was the outcome of this action? Running against MPD server > 0.20 raises an exception: TypeError: format() got multiple values for keyword argument 'duration' Cheers -- System Information: Debian Release: 9.0 APT prefers testing APT policy: (990, 'testing'), (600, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages mpd-sima depends on: ii adduser 3.115 ii init-system-helpers 1.47 ii lsb-base 9.20161125 ii python3-musicpd 0.4.1-1 ii python3-requests 2.12.4-1 pn python3:any <none> mpd-sima recommends no packages. Versions of packages mpd-sima suggests: ii mpd 0.19.21-1 -- no debconf information
diff --git a/sima/lib/track.py b/sima/lib/track.py index 10f2bdc..859cfa9 100644 --- a/sima/lib/track.py +++ b/sima/lib/track.py @@ -38,6 +38,7 @@ class Track: """ def __init__(self, file=None, time=0, pos=-1, **kwargs): + 'duration' in kwargs and kwargs.pop('duration') self.title = self.artist = self.album = self.albumartist = '' self.musicbrainz_artistid = self.musicbrainz_albumartistid = None self.pos = int(pos)