mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-15 00:43:59 +08:00
fix
This commit is contained in:
parent
c1d060872d
commit
1e27c99d8d
@ -117,9 +117,9 @@ def _13_f(line): #递增式
|
||||
line=sorted(saveline, key=len, reverse=True)[0]
|
||||
return line
|
||||
def _1_f(line):
|
||||
r=re.compile('\{(.*?)/.*?\}')
|
||||
r=re.compile(r'\{(.*?)/.*?\}')
|
||||
line=r.sub(lambda x:x.groups()[0],line)
|
||||
r=re.compile('\{(.*?):.*?\}')
|
||||
r=re.compile(r'\{(.*?):.*?\}')
|
||||
line=r.sub(lambda x:x.groups()[0],line)
|
||||
return line
|
||||
def _4_f(line):
|
||||
|
@ -34,13 +34,13 @@ def dispatachtask(gamepath):
|
||||
__t=[]
|
||||
for _ in [title,p[-2],p[-1][:-4]]:
|
||||
_=_.replace('(同人ゲーム)','').replace('(18禁ゲーム)','')
|
||||
_=re.sub('\[RJ(.*?)\]','',_)
|
||||
_=re.sub('\[\d{4}-?\d{2}\-?\d{2}\]','',_)
|
||||
_=re.sub(r'\[RJ(.*?)\]','',_)
|
||||
_=re.sub(r'\[\d{4}-?\d{2}\-?\d{2}\]','',_)
|
||||
__t.append(_)
|
||||
_=re.sub('\[(.*?)\]','',_)
|
||||
_=re.sub(r'\[(.*?)\]','',_)
|
||||
if _ !=__t[-1]:
|
||||
__t.append(_)
|
||||
_=re.sub('\((.*?)\)','',_)
|
||||
_=re.sub(r'\((.*?)\)','',_)
|
||||
if _ !=__t[-1]:
|
||||
__t.append(_)
|
||||
lst=[]
|
||||
|
@ -41,7 +41,7 @@ if %errorlevel%==0 (
|
||||
goto waitloop
|
||||
)
|
||||
timeout 1
|
||||
xcopy .\cache\update\LunaTranslator'''+bit+''' .\ /s /e /c /y /h /r
|
||||
xcopy .\cache\update\LunaTranslator'''+bit+r''' .\ /s /e /c /y /h /r
|
||||
exit
|
||||
''')
|
||||
windows.ShellExecute(None, "open", 'cache\\update\\update.bat', "", os.path.dirname('.'), windows.SW_HIDE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user