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))