diff --git a/beetsplug/fuzzy.py b/beetsplug/fuzzy.py index 363122e8d..9e6eb24c7 100644 --- a/beetsplug/fuzzy.py +++ b/beetsplug/fuzzy.py @@ -35,8 +35,11 @@ class FuzzyQuery(PluginQuery): if pattern is None: return False val = util.as_string(val) + # smartcase + if(pattern.islower()): + val = val.lower() queryMatcher = difflib.SequenceMatcher(None, pattern, val) - return queryMatcher.quick_ratio() > self.threshold + return queryMatcher.quick_ratio() >= self.threshold class FuzzyPlugin(BeetsPlugin):