diff --git a/config.ini b/config.ini
index 61e19cc..240f7ce 100755
--- a/config.ini
+++ b/config.ini
@@ -21,6 +21,8 @@ nfo_skip_days=30
ignore_failed_list=0
download_only_missing_images=1
mapping_table_validity=7
+; 在jellyfin中tags和genres重复,因此可以只保存genres到nfo中
+donot_save_tags = 0
sleep=3
[advenced_sleep]
diff --git a/config.py b/config.py
index 30efb81..c216958 100644
--- a/config.py
+++ b/config.py
@@ -212,6 +212,9 @@ class Config:
def mapping_table_validity(self) -> int:
return self.conf.getint("common", "mapping_table_validity")
+
+ def donot_save_tags(self) -> int:
+ return self.conf.getint("common", "donot_save_tags")
def sleep(self) -> int:
return self.conf.getint("common", "sleep")
@@ -431,6 +434,7 @@ class Config:
conf.set(sec1, "ignore_failed_list", 0)
conf.set(sec1, "download_only_missing_images", 1)
conf.set(sec1, "mapping_table_validity", 7)
+ conf.set(sec1, "donot_save_tags", 0)
sec2 = "advenced_sleep"
conf.add_section(sec2)
diff --git a/core.py b/core.py
index 4c48f1f..cfb6237 100644
--- a/core.py
+++ b/core.py
@@ -364,22 +364,24 @@ def print_files(path, leak_word, c_word, naming_rule, part, cn_sub, json_data, f
pass
print(" " + studio + "", file=code)
print(" ", file=code)
- if cn_sub == '1':
- print(" 中文字幕", file=code)
- if liuchu == '流出':
- print(" 流出", file=code)
- if uncensored == 1:
- print(" 无码", file=code)
- if hack_word != '':
- print(" 破解", file=code)
- if _4k == '4k':
- print(" 4k", file=code)
- try:
- for i in tag:
- print(" " + i + "", file=code)
- # print(" " + series + "", file=code)
- except:
- pass
+ skip_tags = config.getInstance().donot_save_tags()
+ if not skip_tags:
+ if cn_sub == '1':
+ print(" 中文字幕", file=code)
+ if liuchu == '流出':
+ print(" 流出", file=code)
+ if uncensored == 1:
+ print(" 无码", file=code)
+ if hack_word != '':
+ print(" 破解", file=code)
+ if _4k == '4k':
+ print(" 4k", file=code)
+ try:
+ for i in tag:
+ print(" " + i + "", file=code)
+ # print(" " + series + "", file=code)
+ except:
+ pass
if cn_sub == '1':
print(" 中文字幕", file=code)
if liuchu == '流出':