Returning single language understood as a list

main
Bob Mottram 2022-02-25 15:20:15 +00:00
parent 4c9ddc3d4b
commit ff4a7ba304
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,8 @@ def get_actor_languages_list(actor_json: {}) -> []:
lang_list_temp = lang_str.split('+')
elif ' ' in lang_str:
lang_list_temp = lang_str.split(' ')
else:
return [lang_str]
lang_list = []
for lang in lang_list_temp:
lang = lang.strip()