Fix trailer and extrafanart capture Exception handling
Update core.py
This commit is contained in:
20
core.py
20
core.py
@@ -713,15 +713,19 @@ def core_main(file_path, number_th, conf: config.Config):
|
|||||||
|
|
||||||
# creatFolder会返回番号路径
|
# creatFolder会返回番号路径
|
||||||
image_download( json_data.get('cover'), number, c_word, path, conf, filepath, conf.failed_folder())
|
image_download( json_data.get('cover'), number, c_word, path, conf, filepath, conf.failed_folder())
|
||||||
|
try:
|
||||||
|
# 下载预告片
|
||||||
|
if json_data.get('trailer'):
|
||||||
|
trailer_download(json_data.get('trailer'), c_word, number, path, filepath, conf, conf.failed_folder())
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
# 下载预告片
|
try:
|
||||||
if json_data.get('trailer'):
|
# 下载剧照 data, path, conf: config.Config, filepath, failed_folder
|
||||||
trailer_download(json_data.get('trailer'), c_word, number, path, filepath, conf, conf.failed_folder())
|
if json_data.get('extrafanart'):
|
||||||
|
extrafanart_download(json_data.get('extrafanart'), path, conf, filepath, conf.failed_folder())
|
||||||
# 下载剧照 data, path, conf: config.Config, filepath, failed_folder
|
except:
|
||||||
if json_data.get('extrafanart'):
|
pass
|
||||||
extrafanart_download(json_data.get('extrafanart'), path, conf, filepath, conf.failed_folder())
|
|
||||||
|
|
||||||
# 裁剪图
|
# 裁剪图
|
||||||
cutImage(imagecut, path, number, c_word)
|
cutImage(imagecut, path, number, c_word)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user