mirror of
https://github.com/beetbox/beets.git
synced 2026-01-09 01:15:38 +01:00
Query path with bytestring. Might fix tests.
This commit is contained in:
parent
6b7a6baaf2
commit
e2be6ba781
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue