From ff3b1f095f27a4808d3c69aa85fa204f692b5f69 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Thu, 16 Sep 2010 14:29:23 -0700 Subject: [PATCH] fix import logger (was logging parent directories, stupidly) --- NEWS | 1 + beets/ui/commands.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 8f028f418..afdb48016 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,7 @@ * New event system for plugins (thanks, Jeff!). Plugins can now get callbacks from beets when certain events occur in the core. * Fixed bug that completely broke non-autotagged imports ("import -A"). +* Fixed bug that logged the wrong paths when using "import -l". * A new "-v" command line switch enables debugging output. 1.0b4 diff --git a/beets/ui/commands.py b/beets/ui/commands.py index ed9936f18..9eaca0882 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -191,7 +191,7 @@ def tag_log(logfile, status, path): reflect the reason the album couldn't be tagged. """ if logfile: - print >>logfile, status, os.path.dirname(path) + print >>logfile, '%s %s' % (status, path) def choose_match(path, items, cur_artist, cur_album, candidates, rec, color=True):