From 0cf9956d5bb316bf8ff51d93ddd6657d79e13407 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 11 Jan 2015 12:10:52 -0800 Subject: [PATCH] Unicode logging formats, FFS (fix #1214) --- beets/importer.py | 6 +++--- docs/changelog.rst | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/beets/importer.py b/beets/importer.py index a47fe9a56..2ee143e4c 100644 --- a/beets/importer.py +++ b/beets/importer.py @@ -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): diff --git a/docs/changelog.rst b/docs/changelog.rst index 286c26abb..5ca5a7c0d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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)