From 5fb7c424add55716cf163a4bf8af9533806b76b4 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Wed, 18 Dec 2013 12:01:55 -0800 Subject: [PATCH] use canonical parent, not base tag (#478) --- beetsplug/lastgenre/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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