Merge pull request #3195 from arcresu/patch-1

the: log a debug only when text is changed
This commit is contained in:
Adrian Sampson 2019-03-31 21:39:13 -04:00
commit fa3a569a45

View file

@ -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''