diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index f6c1ab1c8..07ec6d31f 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -108,8 +108,8 @@ def _strings_to_genre(tags): out = [] for tag in tags: for parent in find_parents(tag, options['branches']): - if _is_allowed(tag): - out.append(tag) + if _is_allowed(parent): + out.append(parent) break tags = out