PlexKodiConnect/.tx/pull_languages.py

36 lines
555 B
Python
Raw Normal View History

2017-07-25 20:13:57 +02:00
import os
2018-08-10 08:48:07 +02:00
path = "C:\\Users\\kat\\AppData\\Local\\Continuum\\anaconda3\\envs\\kodi\\Scripts"
command = os.path.join(path, "tx.exe")
2017-07-25 20:13:57 +02:00
languages = [
'nl_NL',
'fr_CA',
'fr_FR',
'de_DE',
'pt_PT',
'pt_BR',
'es_ES',
'es_AR',
'es_MX',
'cs_CZ',
'zh_CN',
'zh_TW',
'da_DK',
'it_IT',
'no_NO',
'el_GR',
'pl_PL',
# 'sv_SE',
2018-04-06 15:32:20 +02:00
'hu_HU',
2017-10-09 22:24:21 +02:00
'ru_RU',
2018-07-04 14:45:56 +02:00
'uk_UA',
2019-02-16 19:02:24 +01:00
'lv_LV',
2019-07-21 12:35:09 +02:00
'sv_SE',
'lt_LT'
2017-07-25 20:13:57 +02:00
]
os.system("cd ..")
for lang in languages:
2018-08-10 08:48:07 +02:00
os.system(command + " pull -f -l %s" % lang)