Package: mpd-sima Version: 0.13.1-1 Severity: normal Tags: upstream patch Dear Maintainer,
I'm getting warnings like this: 2015-11-02 13:20:33 WARNING: Wrong mbid Signum feat. Katana:ea3b707a-7616-487f-a7d7-81ac947fd146, fd3d7068-ff2b-413d-800e-091cabba7ab1 They appear on tracks which have multiple artists (multiple musicbrainz_artistids, to be precise). * What led up to the situation? Playing, or having matching artists in the library, which have multiple musicbrainz_artistids and appear on Various Artists compilations (so the album artist is ignored). * What exactly did you do (or not do) that was effective (or ineffective)? The attached patch helped to ignore all but the first mbids (as it already is done with the album artists). * What was the outcome of this action? No more warnings. * What outcome did you expect instead? -- System Information: Debian Release: 8.2 APT prefers stable APT policy: (990, 'stable'), (50, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages mpd-sima depends on: ii adduser 3.113+nmu3 ii init-system-helpers 1.22 ii lsb-base 4.1+Debian13+nmu1 ii python3 3.4.2-2 ii python3-musicpd 0.4.1-1 ii python3-requests 2.4.3-6 pn python3:any <none> mpd-sima recommends no packages. Versions of packages mpd-sima suggests: ii mpd 1:0.19.9-dmo2 -- Configuration Files: /etc/bash_completion.d/mpd-sima a1f74a0728a235ba2ebd7fc090a5501d [Errno 2] No such file or directory: u'/etc/bash_completion.d/mpd-sima a1f74a0728a235ba2ebd7fc090a5501d' /etc/mpd-sima.cfg [Errno 13] Permission denied: u'/etc/mpd-sima.cfg' -- no debconf information
--- a/sima/lib/meta.py 2015-11-03 16:28:53.768812014 +0100 +++ b/sima/lib/meta.py 2015-11-03 16:44:37.594314215 +0100 @@ -153,7 +153,8 @@ >>> artobj1 = Artist(name='Tool') """ name = kwargs.get('artist', name).split(', ')[0] - mbid = kwargs.get('musicbrainz_artistid', mbid) + if (kwargs.get('musicbrainz_artistid', False)): + mbid = kwargs.get('musicbrainz_artistid').split(', ')[0] if (kwargs.get('albumartist', False) and kwargs.get('albumartist') != 'Various Artists'): name = kwargs.get('albumartist').split(', ')[0]