Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调整默认配置文件中的自定义分类自定义标签配置的默认值 #436

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cnzgray
Copy link
Contributor

@cnzgray cnzgray commented Nov 8, 2024

以下代码处,原来的逻辑是对整个字符串format,然后按逗号拆分。而目前的默认值会导致多一个分类,该分类会把原来所有的分类合并起来。

genre.append(genre_new.format(**dic))

@Izumiko
Copy link

Izumiko commented Nov 17, 2024

这部分不如还按原来的逻辑处理,只改配置文件会让tags那里缺少大部分关键词。

...
for genre_new in Cfg().summarizer.nfo.custom_genres_fields:
    genre_to_add = [g.strip() for g in genre_new.format(**dic).split(',')]
    genre.extend(genre_to_add)
...
for tag_new in Cfg().summarizer.nfo.custom_tags_fields:
    tags_to_add = [tag.strip() for tag in tag_new.format(**dic).split(',')]
    tags.extend(tags_to_add)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants