Add: Tag only have actors in config
This commit is contained in:
28
core.py
28
core.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user