Skip to content

[Feature Request]: 重命名希望增加季标题的填写 #4100

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

Closed
legpuller opened this issue Apr 6, 2025 · 1 comment
Closed

[Feature Request]: 重命名希望增加季标题的填写 #4100

legpuller opened this issue Apr 6, 2025 · 1 comment

Comments

@legpuller
Copy link

当前程序版本

1.9.17

运行环境

Docker

功能改进类型

主程序

功能改进

现在下载好资源之后,重命名的表达式填写那里,没有季标题的表达。因为有些电视剧是有季标题的,为了方便管理和浏览,希望作者能添加一个季标题的表达

参考资料

No response

@wikrin
Copy link
Contributor

wikrin commented May 24, 2025

{{ __mediainfo__.season_info | selectattr('season_number', '==', season | int) | map(attribute='name') | first }}

这样输出的就是季标题了,应用到模板中:

{{title}}{% if year %} ({{year}}){% endif %}/{{ __mediainfo__.season_info | selectattr('season_number', '==', season | int) | map(attribute='name') | first }}/{{title}} - {{season_episode}}{% if part %}-{{part}}{% endif %}{% if episode %} - 第 {{episode}} 集{% endif %}{{fileExt}}

结果应为:
剧标题 + 年份/季标题/剧标题 ...

@DDSRem DDSRem closed this as completed May 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants