Unicode logging formats, FFS (fix #1214)

This commit is contained in:
Adrian Sampson 2015-01-11 12:10:52 -08:00
parent e9834ef51c
commit 0cf9956d5b
2 changed files with 5 additions and 3 deletions

View file

@ -1291,11 +1291,11 @@ def log_files(session, task):
"""A coroutine (pipeline stage) to log each file which will be imported
"""
if isinstance(task, SingletonImportTask):
log.info('Singleton: {0}', displayable_path(task.item['path']))
log.info(u'Singleton: {0}', displayable_path(task.item['path']))
elif task.items:
log.info('Album {0}', displayable_path(task.paths[0]))
log.info(u'Album {0}', displayable_path(task.paths[0]))
for item in task.items:
log.info(' {0}', displayable_path(item['path']))
log.info(u' {0}', displayable_path(item['path']))
def group_albums(session):

View file

@ -16,6 +16,8 @@ Fixes:
:bug:`1177` :bug:`1211`
* :doc:`/plugins/mpdstats`: Avoid double-counting some play events. :bug:`773`
:bug:`1212`
* Fix a crash when the importer deals with Unicode metadata in ``--pretend``
mode. :bug:`1214`
1.3.10 (January 5, 2015)