diff options
author | Louis Vézina <[email protected]> | 2019-12-23 21:01:18 -0500 |
---|---|---|
committer | Louis Vézina <[email protected]> | 2019-12-23 21:01:18 -0500 |
commit | e4cc062dd377c5e8ee9dc2e7f528cfe37ae2c2ce (patch) | |
tree | 57fc7ff7e470453ce4ea53d0c754022951399048 | |
parent | d0ccd08aef5b30cf6870af323f81ece9170d76e1 (diff) | |
download | bazarr-e4cc062dd377c5e8ee9dc2e7f528cfe37ae2c2ce.tar.gz bazarr-e4cc062dd377c5e8ee9dc2e7f528cfe37ae2c2ce.zip |
Another fix for #703.
-rw-r--r-- | libs/subzero/language.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/subzero/language.py b/libs/subzero/language.py index 34c6c882a..12d41d26e 100644 --- a/libs/subzero/language.py +++ b/libs/subzero/language.py @@ -32,10 +32,9 @@ repl_map = { "tib": "bo", } - -ALPHA2_LIST = list(set(filter(lambda x: x, map(lambda x: x.alpha2, LANGUAGE_MATRIX)) + list(repl_map.values()))) -ALPHA3b_LIST = list(set(filter(lambda x: x, map(lambda x: x.alpha3, LANGUAGE_MATRIX)) + - filter(lambda x: len(x) == 3, list(repl_map.keys())))) +ALPHA2_LIST = list(set(filter(lambda x: x, map(lambda x: x.alpha2, LANGUAGE_MATRIX)))) + list(repl_map.values()) +ALPHA3b_LIST = list(set(filter(lambda x: x, map(lambda x: x.alpha3, LANGUAGE_MATRIX)))) + \ + list(set(filter(lambda x: len(x) == 3, list(repl_map.keys())))) FULL_LANGUAGE_LIST = ALPHA2_LIST + ALPHA3b_LIST |