mirror of
https://github.com/beetbox/beets.git
synced 2026-01-10 09:58:45 +01:00
the: log a debug only when text is changed
Previously the `the` plugin would log a debug message when the text _didn't_ get changed by the plugin, whereas I think what was intended was the opposite. With this change the logged messages show the actual transformations made by the plugin.
This commit is contained in:
parent
728267d06c
commit
0b4293de6e
1 changed files with 1 additions and 1 deletions
|
|
@ -93,8 +93,8 @@ class ThePlugin(BeetsPlugin):
|
|||
for p in self.patterns:
|
||||
r = self.unthe(text, p)
|
||||
if r != text:
|
||||
self._log.debug(u'\"{0}\" -> \"{1}\"', text, r)
|
||||
break
|
||||
self._log.debug(u'\"{0}\" -> \"{1}\"', text, r)
|
||||
return r
|
||||
else:
|
||||
return u''
|
||||
|
|
|
|||
Loading…
Reference in a new issue