1. Adrian Sampson
  2. beets


Sam Doshi  committed 965720a

go to next locale if no match in _preferred_alias

we should continue here rather than return so that we continue to search
for matches

  • Participants
  • Parent commits 3749dd1
  • Branches default

Comments (0)

Files changed (1)

File beets/autotag/mb.py

View file
     for locale in config['import']['languages'].as_str_seq():
         # Find matching aliases for this locale.
         matches = [a for a in aliases if a['locale'] == locale]
+        # Skip to the next locale if we have no matches
         if not matches:
-            return
+            continue
         # Find the aliases that have the primary flag set.
         primaries = [a for a in matches if 'primary' in a]