Query path with bytestring. Might fix tests.

This commit is contained in:
Steve Johnson 2017-01-14 12:44:07 -08:00
parent 6b7a6baaf2
commit e2be6ba781

View file

@ -223,7 +223,7 @@ def item_query(queries):
@app.route('/item/path/<path:path>')
def item_at_path(path):
query = beets.library.PathQuery('path', u'/' + path)
query = beets.library.PathQuery('path', b'/' + path.encode('utf-8'))
item = g.lib.items(query).get()
if item:
return flask.jsonify(_rep(item))