Update static_data.json

fix
This commit is contained in:
恍兮惚兮 2024-03-25 21:27:38 +08:00
parent d4a715316c
commit ef62381dc2
5 changed files with 6 additions and 5 deletions

View File

@ -86,7 +86,7 @@ class MAINUI() :
break
if usedict and key in content:
xx='ZX{}Z'.format(chr(ord("B")+zhanweifu))
xx='{{{}}}'.format(zhanweifu)
content=content.replace(key,xx)
mp1[xx]=key
zhanweifu+=1
@ -102,7 +102,7 @@ class MAINUI() :
# if self.vnrshareddict[key]['src']==self.vnrshareddict[key]['tgt']:
# content=content.replace(key,self.vnrshareddict[key]['text'])
# else:
xx='ZX{}Z'.format(chr(ord("B")+zhanweifu))
xx='{{{}}}'.format(zhanweifu)
content=content.replace(key,xx)
mp2[xx]=key
zhanweifu+=1

View File

@ -153,7 +153,7 @@ class Session(Sessionbase):
threading.Thread(target=___perform,daemon=True).start()
headerb=b''
CLRFnum=1+int(proxy is not None)
CLRFnum=1+int(bool((proxy)))
while True:
_headerb=headercqueue.get()
if _headerb is None:

View File

@ -238,6 +238,7 @@ class Sessionbase:
scheme,server,port,param,url=self._parseurl(url,params)
headers,dataptr,datalen=self._parsedata(data,headers,json)
proxy= proxies.get(scheme,None) if proxies else None
proxy= None if proxy=='' else proxy
if timeout:
if isinstance(timeout,(float,int)):
timeout = int(timeout * 1000) # convert to milliseconds

View File

@ -70,4 +70,4 @@ class TS(basetrans):
event=js['data']['event']
if event=='Translating':
trans='\n'.join([_['dst'] for _ in js['data']['list']])
return trans
yield trans

View File

@ -1,5 +1,5 @@
{
"version":"v2.40.1",
"version":"v2.40.2",
"language_list_show":["简体中文","日本語","English","Русский язык","Español","한국어","Français","繁體中文","Tiếng Việt","Türkçe","Polski","Українська Мова","Italiano","اللغة العربية","ภาษาไทย","བོད་སྐད།"] ,
"language_list_translator":["简体中文","日文","英文","俄语","西班牙语","韩语","法语","繁体中文","越南语","土耳其语","波兰语","乌克兰语","意大利语","阿拉伯语","泰语","藏语"],
"language_list_translator_inner":["zh", "ja", "en","ru","es","ko","fr","cht","vi","tr","pl","uk","it","ar","th","bo"],