mpd: Don't lowercase search queries

This commit is contained in:
Stein Magnus Jodal 2012-11-13 11:51:41 +01:00
parent 487503b51c
commit 7ec156e373
2 changed files with 4 additions and 1 deletions

View File

@ -110,6 +110,9 @@ backends:
- The MPD command ``plchanges`` always returned the entire playlist. It now
returns an empty response when the client has seen the latest version.
- MPD no longer lowercases search queries. This broke e.g. search by URI, where
casing may be essential.
v0.8.1 (2012-10-30)
===================

View File

@ -27,7 +27,7 @@ def _build_query(mpd_query):
elif field in ('file', 'filename'):
field = 'uri'
field = str(field) # Needed for kwargs keys on OS X and Windows
what = m.groupdict()['what'].lower()
what = m.groupdict()['what']
if field in query:
query[field].append(what)
else: