Add: Tag only have actors in config

This commit is contained in:
yoshiko2
2022-11-24 01:35:36 +08:00
parent 9db0ba27ef
commit d724b9379b
3 changed files with 43 additions and 32 deletions

28
core.py
View File

@@ -374,17 +374,23 @@ def print_files(path, leak_word, c_word, naming_rule, part, cn_sub, json_data, f
skip_tags = config.getInstance().donot_save_tags()
if not skip_tags:
if cn_sub == '1':
print(" <tag>中文字幕</tag>", file=code)
if liuchu == '流出':
print(" <tag>流出</tag>", file=code)
if uncensored == 1:
print(" <tag>无码</tag>", file=code)
if hack_word != '':
print(" <tag>破解</tag>", file=code)
if _4k == '4k':
print(" <tag>4k</tag>", file=code)
try:
if config.getInstance().actor_only_tag():
for key in actor_list:
try:
print(" <tag>" + key + "</tag>", file=code)
except:
pass
else:
if cn_sub == '1':
print(" <tag>中文字幕</tag>", file=code)
if liuchu == '流出':
print(" <tag>流出</tag>", file=code)
if uncensored == 1:
print(" <tag>无码</tag>", file=code)
if hack_word != '':
print(" <tag>破解</tag>", file=code)
if _4k == '4k':
print(" <tag>4k</tag>", file=code)
for i in tag:
print(" <tag>" + i + "</tag>", file=code)
# print(" <tag>" + series + "</tag>", file=code)