third time's a charm

This commit is contained in:
Corinne Hoener 2016-09-27 06:21:51 -04:00
parent 1c9202cc86
commit a7e3bf2d0b

View file

@ -200,8 +200,8 @@ 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['prefer_specific']
and len(tags_all) >= count):
if (not self.config['prefer_specific'] and
len(tags_all) >= count):
break
tags = tags_all