From 1cd7fad1aa967c33ff52317c46bfab542b234939 Mon Sep 17 00:00:00 2001 From: sqzw-x Date: Tue, 22 Oct 2024 23:07:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=AE=E5=89=8A=E8=BF=87=E7=A8=8B?= =?UTF-8?q?=E4=B8=AD=E7=AB=8B=E5=88=BB=E5=88=9B=E5=BB=BA=E8=BD=AF=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/core/scraper.py | 5 +++++ src/views/MDCx.py | 2 +- src/views/MDCx.ui | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/models/core/scraper.py b/src/models/core/scraper.py index 5acbca6..df4142e 100644 --- a/src/models/core/scraper.py +++ b/src/models/core/scraper.py @@ -265,6 +265,11 @@ def deal_tag_data(tag): return False, json_data # 返回MDCx1_1main, 继续处理下一个文件 save_success_list(file_path, file_new_path) # 保存成功列表 + # 创建软链接及复制文件 + if config.auto_link: + target_dir = os.path.join(config.localdisk_path, os.path.relpath(folder_new_path, success_folder)) + newtdisk_creat_symlink('copy_netdisk_nfo' in config.switch_on, folder_new_path, target_dir) + # json添加封面缩略图路径 # json_data['number'] = movie_number json_data['poster_path'] = poster_final_path diff --git a/src/views/MDCx.py b/src/views/MDCx.py index 76bf9d7..96b7fab 100644 --- a/src/views/MDCx.py +++ b/src/views/MDCx.py @@ -10946,7 +10946,7 @@ def retranslateUi(self, MDCx): self.pushButton_select_localdisk_path.setText(_translate("MDCx", "选择目录")) self.checkBox_copy_netdisk_nfo.setText(_translate("MDCx", "同时复制网盘目录的nfo、图片、字幕文件到软链接目录")) self.label_341.setText(_translate("MDCx", "勾选后将同时复制网盘中刮削好的nfo等文件到本地,或者你也可以重新刮削这些软链接")) - self.checkBox_create_link.setText(_translate("MDCx", "刮削结束后自动创建软链接")) + self.checkBox_create_link.setText(_translate("MDCx", "刮削过程中自动创建软链接")) self.groupBox_16.setTitle(_translate("MDCx", "刮削目录")) self.pushButton_select_softlink_folder.setText(_translate("MDCx", "选择目录")) self.label_58.setText(_translate("MDCx", "指不想要刮削的目录,可以填写多个目录,以逗号分开(中英文逗号都可以)")) diff --git a/src/views/MDCx.ui b/src/views/MDCx.ui index 4ad5b9c..e0b9127 100644 --- a/src/views/MDCx.ui +++ b/src/views/MDCx.ui @@ -2271,7 +2271,7 @@ li.checked::marker { content: "\2612"; } - 刮削结束后自动创建软链接 + 刮削过程中自动创建软链接