mirror of
https://github.com/beetbox/beets.git
synced 2026-01-08 00:45:55 +01:00
Unicode templates in duplicates (fix #2188)
This commit is contained in:
parent
139d22fe9f
commit
ed8d04f594
1 changed files with 5 additions and 5 deletions
|
|
@ -136,15 +136,15 @@ class DuplicatesPlugin(BeetsPlugin):
|
|||
items = lib.items(decargs(args))
|
||||
|
||||
if path:
|
||||
fmt = '$path'
|
||||
fmt = u'$path'
|
||||
|
||||
# Default format string for count mode.
|
||||
if count and not fmt:
|
||||
if album:
|
||||
fmt = '$albumartist - $album'
|
||||
fmt = u'$albumartist - $album'
|
||||
else:
|
||||
fmt = '$albumartist - $album - $title'
|
||||
fmt += ': {0}'
|
||||
fmt = u'$albumartist - $album - $title'
|
||||
fmt += u': {0}'
|
||||
|
||||
if checksum:
|
||||
for i in items:
|
||||
|
|
@ -170,7 +170,7 @@ class DuplicatesPlugin(BeetsPlugin):
|
|||
return [self._command]
|
||||
|
||||
def _process_item(self, item, copy=False, move=False, delete=False,
|
||||
tag=False, fmt=''):
|
||||
tag=False, fmt=u''):
|
||||
"""Process Item `item`.
|
||||
"""
|
||||
print_(format(item, fmt))
|
||||
|
|
|
|||
Loading…
Reference in a new issue