Update 2.6
This commit is contained in:
6
core.py
6
core.py
@@ -90,6 +90,7 @@ def getDataFromJSON(file_number, filepath, failed_folder): # 从JSON返回元
|
||||
runtime = json_data['runtime']
|
||||
outline = json_data['runtime']
|
||||
label = json_data['label']
|
||||
year = json_data['year']
|
||||
try:
|
||||
cover_small = json_data['cover_small']
|
||||
except:
|
||||
@@ -134,6 +135,7 @@ def getDataFromJSON(file_number, filepath, failed_folder): # 从JSON返回元
|
||||
json_data['tag'] = tag
|
||||
json_data['naming_rule'] = naming_rule
|
||||
json_data['location_rule'] = location_rule
|
||||
json_data['year'] = year
|
||||
return json_data
|
||||
|
||||
|
||||
@@ -548,7 +550,7 @@ def cutImage(option, imagecut, path, number, c_word):
|
||||
|
||||
|
||||
def pasteFileToFolder(filepath, path, number, c_word): # 文件路径,番号,后缀,要移动至的位置
|
||||
houzhui = str(re.search('[.](AVI|RMVB|WMV|MOV|MP4|MKV|FLV|TS|WEBM|avi|rmvb|wmv|mov|mp4|mkv|flv|ts|webm)$', filepath).group())
|
||||
houzhui = str(re.search('[.](AVI|RMVB|WMV|MOV|MP4|MKV|FLV|TS|avi|rmvb|wmv|mov|mp4|mkv|flv|ts)$', filepath).group())
|
||||
try:
|
||||
if config['common']['soft_link'] == '1': # 如果soft_link=1 使用软链接
|
||||
os.symlink(filepath, path + '/' + number + c_word + houzhui)
|
||||
@@ -575,7 +577,7 @@ def pasteFileToFolder(filepath, path, number, c_word): # 文件路径,番号
|
||||
def pasteFileToFolder_mode2(filepath, path, multi_part, number, part, c_word): # 文件路径,番号,后缀,要移动至的位置
|
||||
if multi_part == 1:
|
||||
number += part # 这时number会被附加上CD1后缀
|
||||
houzhui = str(re.search('[.](AVI|RMVB|WMV|MOV|MP4|MKV|FLV|TS|WEBM|avi|rmvb|wmv|mov|mp4|mkv|flv|ts|webm)$', filepath).group())
|
||||
houzhui = str(re.search('[.](AVI|RMVB|WMV|MOV|MP4|MKV|FLV|TS|avi|rmvb|wmv|mov|mp4|mkv|flv|ts)$', filepath).group())
|
||||
try:
|
||||
if config['common']['soft_link'] == '1':
|
||||
os.symlink(filepath, path + '/' + number + part + c_word + houzhui)
|
||||
|
||||
Reference in New Issue
Block a user