Alternative language value separators

main
Bob Mottram 2021-08-11 10:04:40 +01:00
parent 5b286bfe68
commit 1a54698ec8
1 changed files with 6 additions and 0 deletions

View File

@ -38,8 +38,14 @@ def setActorLanguages(baseDir: str, actorJson: {}, languagesStr: str) -> None:
separator = ',' separator = ','
if '/' in languagesStr: if '/' in languagesStr:
separator = '/' separator = '/'
elif ',' in languagesStr:
separator = ','
elif ';' in languagesStr: elif ';' in languagesStr:
separator = ';' separator = ';'
elif '+' in languagesStr:
separator = '+'
elif ' ' in languagesStr:
separator = ' '
langList = languagesStr.lower().split(separator) langList = languagesStr.lower().split(separator)
langList2 = [] langList2 = []
for lang in langList: for lang in langList: