From e2be6ba7814dafc30f9a025dacf8769687ef26c5 Mon Sep 17 00:00:00 2001 From: Steve Johnson Date: Sat, 14 Jan 2017 12:44:07 -0800 Subject: [PATCH] Query path with bytestring. Might fix tests. --- beetsplug/web/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index 360e018e6..7977eda94 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -223,7 +223,7 @@ def item_query(queries): @app.route('/item/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))