Rename thread

This commit is contained in:
EstrellaXD
2023-05-10 10:35:02 +08:00
parent f3c2aeded8
commit fdbfd66bfd
3 changed files with 36 additions and 26 deletions

View File

@@ -54,7 +54,7 @@ class Renamer(DownloadClient):
elif method == "pn":
return f"{file_info.title} S{season}E{episode}{file_info.suffix}"
elif method == "advance":
return f"{bangumi_name} S{file_info.season}E{file_info.episode}{file_info.suffix}"
return f"{bangumi_name} S{season}E{episode}{file_info.suffix}"
elif method == "subtitle_pn":
return f"{file_info.title} S{season}E{episode}.{file_info.language}{file_info.suffix}"
elif method == "subtitle_advance":

View File

@@ -4,8 +4,8 @@ from pydantic import BaseModel, Field
class Program(BaseModel):
sleep_time: int = Field(7200, description="Sleep time")
rename_times: int = Field(20, description="Rename times in one loop")
rss_time: int = Field(7200, description="Sleep time")
rename_time: int = Field(60, description="Rename times in one loop")
webui_port: int = Field(7892, description="WebUI port")