Beta 10.2 Update

This commit is contained in:
wenead99
2019-06-19 18:19:34 +08:00
committed by GitHub
parent 36c436772c
commit 764fba74ec
6 changed files with 75 additions and 60 deletions

View File

@@ -299,7 +299,7 @@ def cutImage():
h = img.height
img.save(path + '/' + naming_rule + '.png')
def pasteFileToFolder(filepath, path): #文件路径,番号,后缀,要移动至的位置
houzhui = str(re.search('[.](AVI|RMVB|WMV|MOV|MP4|MKV|FLV|avi|rmvb|wmv|mov|mp4|mkv|flv)$', filepath).group())
houzhui = str(re.search('[.](AVI|RMVB|WMV|MOV|MP4|MKV|FLV|TS|avi|rmvb|wmv|mov|mp4|mkv|flv|ts)$', filepath).group())
os.rename(filepath, naming_rule + houzhui)
shutil.move(naming_rule + houzhui, path)