Skip to content

Conversation

@cnzgray
Copy link
Contributor

@cnzgray cnzgray commented Nov 8, 2024

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

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

@cnzgray cnzgray force-pushed the fix2 branch 2 times, most recently from 61fbce2 to 2b5bb08 Compare November 8, 2024 06:06
@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