wider watch for failed translation

This commit is contained in:
jesopo 2019-07-22 13:59:50 +01:00
parent 4babce5357
commit 6931aa2ce1

View file

@ -38,7 +38,7 @@ class Module(ModuleManager.BaseModule):
"client": "gtx", "sl": source_language,
"tl": target_language, "dt": "t", "q": phrase})
if page and not page.data == "[null,null,\"\"]":
if page and not page.data.startswith("[null,null,"):
data = page.data
while ",," in data:
data = data.replace(",,", ",null,")