mirror of
https://github.com/beetbox/beets.git
synced 2025-12-25 10:05:13 +01:00
Python2 support for bareasc command
Signed-off-by: Graham R. Cobb <g+beets@cobb.uk.net>
This commit is contained in:
parent
d1ec7b4b70
commit
0078b02085
1 changed files with 2 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ from beets.ui import print_, decargs
|
|||
from beets.plugins import BeetsPlugin
|
||||
from beets.dbcore.query import StringFieldQuery
|
||||
from unidecode import unidecode
|
||||
import six
|
||||
|
||||
|
||||
class BareascQuery(StringFieldQuery):
|
||||
|
|
@ -80,4 +81,4 @@ class BareascPlugin(BeetsPlugin):
|
|||
print_(unidecode(format(album, fmt)))
|
||||
else:
|
||||
for item in lib.items(query):
|
||||
print_(unidecode(format(item, fmt)))
|
||||
print_(six.ensure_str(unidecode(format(item, fmt))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue