From 6af0ace8aca9263054a95d133ea17b64c5959e28 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 27 Oct 2013 20:23:22 +0100 Subject: [PATCH] mpd: Map 'albumartist' field from MPD to Mopidy query --- mopidy/frontends/mpd/translator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mopidy/frontends/mpd/translator.py b/mopidy/frontends/mpd/translator.py index d4686597..266d0d88 100644 --- a/mopidy/frontends/mpd/translator.py +++ b/mopidy/frontends/mpd/translator.py @@ -183,10 +183,12 @@ def query_from_mpd_list_format(field, mpd_query): # and in mopidy.frontends.mpd.protocol.music_db.QUERY_RE. MPD_SEARCH_QUERY_RE = re.compile(r""" + \b # Only begin matching at word bundaries "? # Optional quote around the field type (?: # A non-capturing group for the field type [Aa]lbum | [Aa]rtist + | [Aa]lbumartist | [Dd]ate | [Ff]ile | [Ff]ilename @@ -199,10 +201,12 @@ MPD_SEARCH_QUERY_RE = re.compile(r""" """, re.VERBOSE) MPD_SEARCH_QUERY_PART_RE = re.compile(r""" + \b # Only begin matching at word bundaries "? # Optional quote around the field type (?P( # A capturing group for the field type [Aa]lbum | [Aa]rtist + | [Aa]lbumartist | [Dd]ate | [Ff]ile | [Ff]ilename