From 4d40b058d36c14b6fc54a7ad0cd7a1a3a8834bda Mon Sep 17 00:00:00 2001 From: Ivan Shapovalov Date: Sun, 6 Mar 2016 02:12:43 +0300 Subject: [PATCH] treewide: add `u` to instances of 'singleton:true' Fixes #1901. --- beets/ui/__init__.py | 4 ++-- beetsplug/mbsync.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py index 8daefa12a..ac919d7d2 100644 --- a/beets/ui/__init__.py +++ b/beets/ui/__init__.py @@ -59,8 +59,8 @@ log.propagate = False # Don't propagate to root handler. PF_KEY_QUERIES = { - 'comp': 'comp:true', - 'singleton': 'singleton:true', + 'comp': u'comp:true', + 'singleton': u'singleton:true', } diff --git a/beetsplug/mbsync.py b/beetsplug/mbsync.py index 56513353a..cf58c82d5 100644 --- a/beetsplug/mbsync.py +++ b/beetsplug/mbsync.py @@ -75,7 +75,7 @@ class MBSyncPlugin(BeetsPlugin): """Retrieve and apply info from the autotagger for items matched by query. """ - for item in lib.items(query + ['singleton:true']): + for item in lib.items(query + [u'singleton:true']): item_formatted = format(item) if not item.mb_trackid: self._log.info(u'Skipping singleton with no mb_trackid: {0}',