Skip to content

Commit 4b59f94

Browse files
committed
Fix the suffix matching problem of WebM file
1 parent 6b4e501 commit 4b59f94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ def cutImage(option, imagecut, path, number, c_word):
544544

545545

546546
def pasteFileToFolder(filepath, path, number, c_word): # 文件路径,番号,后缀,要移动至的位置
547-
houzhui = str(re.search('[.](AVI|RMVB|WMV|MOV|MP4|MKV|FLV|TS|avi|rmvb|wmv|mov|mp4|mkv|flv|ts)$', filepath).group())
547+
houzhui = str(re.search('[.](AVI|RMVB|WMV|MOV|MP4|MKV|FLV|TS|WEBM|avi|rmvb|wmv|mov|mp4|mkv|flv|ts|webm)$', filepath).group())
548548
try:
549549
if config['common']['soft_link'] == '1': # 如果soft_link=1 使用软链接
550550
os.symlink(filepath, path + '/' + number + c_word + houzhui)
@@ -571,7 +571,7 @@ def pasteFileToFolder(filepath, path, number, c_word): # 文件路径,番号
571571
def pasteFileToFolder_mode2(filepath, path, multi_part, number, part, c_word): # 文件路径,番号,后缀,要移动至的位置
572572
if multi_part == 1:
573573
number += part # 这时number会被附加上CD1后缀
574-
houzhui = str(re.search('[.](AVI|RMVB|WMV|MOV|MP4|MKV|FLV|TS|avi|rmvb|wmv|mov|mp4|mkv|flv|ts)$', filepath).group())
574+
houzhui = str(re.search('[.](AVI|RMVB|WMV|MOV|MP4|MKV|FLV|TS|WEBM|avi|rmvb|wmv|mov|mp4|mkv|flv|ts|webm)$', filepath).group())
575575
try:
576576
if config['common']['soft_link'] == '1':
577577
os.symlink(filepath, path + '/' + number + part + c_word + houzhui)

0 commit comments

Comments
 (0)