Skip to content

Commit

Permalink
3.72
Browse files Browse the repository at this point in the history
  • Loading branch information
moyy996 committed Feb 17, 2020
1 parent 48a5e3f commit c448870
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions AVDC_Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, parent=None):
self.Ui.setupUi(self) # 初始化Ui
self.Init_Ui()
# 初始化需要的变量
self.version = '3.71'
self.version = '3.72'
self.m_drag = False
self.m_DragPosition = 0
self.item_succ = self.Ui.treeWidget_number.topLevelItem(0)
Expand Down Expand Up @@ -1046,6 +1046,8 @@ def creatFolder(self, success_folder, json_data, config):
json_data)
if len(actor.split(',')) >= 15:
actor = actor.split(',')[0] + ',' + actor.split(',')[1] + ',' + actor.split(',')[2] + '等演员'
if 'N/A' in actor:
actor = 'Unknown'
folder_name = json_data['folder_name']
path = folder_name.replace('title', title).replace('studio', studio).replace('year', year).replace('runtime',
runtime).replace(
Expand Down Expand Up @@ -1285,12 +1287,12 @@ def AVDC_Main(self):
if config['common']['soft_link'] == '1':
self.add_text_main('[-]Link ' + movie + ' to failed folder')
try:
os.symlink(movie, curr_path + '/' + 'failed/')
os.symlink(movie, curr_path + '/' + failed_folder + '/')
except Exception as error_info:
self.add_text_main('[-]Error in AVDC_Main: ' + str(error_info))
else:
try:
shutil.move(movie, curr_path + '/' + 'failed/')
shutil.move(movie, curr_path + '/' + failed_folder + '/')
self.add_text_main('[-]Move ' + movie + ' to failed folder')
except shutil.Error as error_info:
self.add_text_main('[-]Error in AVDC_Main: ' + str(error_info))
Expand Down
4 changes: 2 additions & 2 deletions update_check.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.71",
"version_show":"3.71",
"version": "3.72",
"version_show":"3.72",
"download": "https://github.com/moyy996/AVDC/releases"
}

0 comments on commit c448870

Please sign in to comment.