This commit is contained in:
恍兮惚兮 2024-01-20 17:30:19 +08:00
parent c1d060872d
commit 1e27c99d8d
3 changed files with 7 additions and 7 deletions

View File

@ -117,9 +117,9 @@ def _13_f(line): #递增式
line=sorted(saveline, key=len, reverse=True)[0] line=sorted(saveline, key=len, reverse=True)[0]
return line return line
def _1_f(line): def _1_f(line):
r=re.compile('\{(.*?)/.*?\}') r=re.compile(r'\{(.*?)/.*?\}')
line=r.sub(lambda x:x.groups()[0],line) 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) line=r.sub(lambda x:x.groups()[0],line)
return line return line
def _4_f(line): def _4_f(line):

View File

@ -34,13 +34,13 @@ def dispatachtask(gamepath):
__t=[] __t=[]
for _ in [title,p[-2],p[-1][:-4]]: for _ in [title,p[-2],p[-1][:-4]]:
_=_.replace('(同人ゲーム)','').replace('(18禁ゲーム)','') _=_.replace('(同人ゲーム)','').replace('(18禁ゲーム)','')
_=re.sub('\[RJ(.*?)\]','',_) _=re.sub(r'\[RJ(.*?)\]','',_)
_=re.sub('\[\d{4}-?\d{2}\-?\d{2}\]','',_) _=re.sub(r'\[\d{4}-?\d{2}\-?\d{2}\]','',_)
__t.append(_) __t.append(_)
_=re.sub('\[(.*?)\]','',_) _=re.sub(r'\[(.*?)\]','',_)
if _ !=__t[-1]: if _ !=__t[-1]:
__t.append(_) __t.append(_)
_=re.sub('\((.*?)\)','',_) _=re.sub(r'\((.*?)\)','',_)
if _ !=__t[-1]: if _ !=__t[-1]:
__t.append(_) __t.append(_)
lst=[] lst=[]

View File

@ -41,7 +41,7 @@ if %errorlevel%==0 (
goto waitloop goto waitloop
) )
timeout 1 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 exit
''') ''')
windows.ShellExecute(None, "open", 'cache\\update\\update.bat', "", os.path.dirname('.'), windows.SW_HIDE) windows.ShellExecute(None, "open", 'cache\\update\\update.bat', "", os.path.dirname('.'), windows.SW_HIDE)