Change the way to reading movie types and sub types to config file

This commit is contained in:
yoshiko2
2021-01-02 00:30:24 +08:00
parent 7490c27e6b
commit 7135b29abb
3 changed files with 4 additions and 4 deletions

View File

@@ -572,8 +572,8 @@ def paste_file_to_folder(filepath, path, number, c_word, conf: config.Config):
sub_res = conf.sub_rule()
for subname in sub_res:
if os.path.exists(os.getcwd() + '/' + number + c_word + subname): # 字幕移动
os.rename(os.getcwd() + '/' + number + c_word + subname, path + '/' + number + c_word + subname)
if os.path.exists(number + c_word + subname): # 字幕移动
os.rename(number + c_word + subname, path + '/' + number + c_word + subname)
print('[+]Sub moved!')
return True