fix rename format

This commit is contained in:
jxxghp
2023-06-06 12:29:27 +08:00
parent 12c36c5485
commit 05564c8ffe

View File

@ -128,9 +128,14 @@ class Settings(BaseSettings):
# 豆瓣用户ID用于同步豆瓣数据使用,分隔 # 豆瓣用户ID用于同步豆瓣数据使用,分隔
DOUBAN_USER_IDS: str = "" DOUBAN_USER_IDS: str = ""
# 电影重命名格式 # 电影重命名格式
MOVIE_RENAME_FORMAT: str = "{{title}} ({{year}})/{{title}} ({{year}})-{{part}} - {{videoFormat}}{{fileExt}}" MOVIE_RENAME_FORMAT: str = "{{title}}{% if year %} ({{year}}){% endif %}" \
"/{{title}}{% if year %} ({{year}}){% endif %}{% if part %}-{{part}}{% endif %}{% if videoFormat %} - {{videoFormat}}{% endif %}" \
"{{fileExt}}"
# 电视剧重命名格式 # 电视剧重命名格式
TV_RENAME_FORMAT: str = "{{title}} ({{year}})/Season {{season}}/{{title}} - {{season_episode}}-{{part}} - 第 {{episode}} 集{{fileExt}}" TV_RENAME_FORMAT: str = "{{title}}{% if year %} ({{year}}){% endif %}" \
"/Season {{season}}" \
"/{{title}} - {{season_episode}}{% if part %}-{{part}}{% endif %}{% if episode %} - 第 {{episode}} 集{% endif %}" \
"{{fileExt}}"
@property @property
def INNER_CONFIG_PATH(self): def INNER_CONFIG_PATH(self):