From c10fe1e126b628945da0d0e2aafd1536e1ebb62a Mon Sep 17 00:00:00 2001 From: Corinne Hoener Date: Mon, 26 Sep 2016 19:06:34 -0400 Subject: [PATCH] change option name to prefer_specific --- beetsplug/lastgenre/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index 0faa587c2..7c1cddf04 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -109,7 +109,7 @@ class LastGenrePlugin(plugins.BeetsPlugin): 'force': True, 'auto': True, 'separator': u', ', - 'specificity': False, + 'prefer_specific': False, }) self.setup() @@ -200,14 +200,15 @@ class LastGenrePlugin(plugins.BeetsPlugin): tags_all += parents # Stop if we have enough tags already, unless we need to find # the most specific tag (instead of the most popular). - if not self.config['specificity'] and len(tags_all) >= count: + if (not self.config['prefer_specific'] and + len(tags_all) >= count): break tags = tags_all tags = deduplicate(tags) # Sort the tags by specificity. - if self.config['specificity']: + if self.config['prefer_specific']: tags = self._sort_by_depth(tags) # c14n only adds allowed genres but we may have had forbidden genres in