Skip to content

Commit

Permalink
feat: 刮削过程中立刻创建软链接
Browse files Browse the repository at this point in the history
  • Loading branch information
sqzw-x committed Oct 22, 2024
1 parent 667f106 commit 1cd7fad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/models/core/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/views/MDCx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", "指不想要刮削的目录,可以填写多个目录,以逗号分开(中英文逗号都可以)"))
Expand Down
2 changes: 1 addition & 1 deletion src/views/MDCx.ui
Original file line number Diff line number Diff line change
Expand Up @@ -2271,7 +2271,7 @@ li.checked::marker { content: "\2612"; }
</size>
</property>
<property name="text">
<string>刮削结束后自动创建软链接</string>
<string>刮削过程中自动创建软链接</string>
</property>
</widget>
</widget>
Expand Down

0 comments on commit 1cd7fad

Please sign in to comment.