Add new domain of mikanani

This commit is contained in:
EstrellaXD
2023-05-03 20:40:49 +08:00
parent 476adc308d
commit 1e8a02595b
2 changed files with 4 additions and 1 deletions

View File

@@ -20,6 +20,9 @@ class Setting(Config):
def reload():
load_config_from_file(CONFIG_PATH)
def save(self):
save_config_to_file(self, CONFIG_PATH)
def save_config_to_file(config: Config, path: str):
config_dict = config.dict()

View File

@@ -22,7 +22,7 @@ class RSSParser(BaseModel):
enable: bool = Field(True, description="Enable RSS parser")
type: str = Field("mikan", description="RSS parser type")
token: str = Field("token", description="RSS parser token")
custom_url: str = Field("mikanani.me", description="Custom RSS host url")
custom_url: str = Field("mikanani.tv", description="Custom RSS host url")
enable_tmdb: bool = Field(False, description="Enable TMDB")
filter: list[str] = Field(["720", r"\d+-\d"], description="Filter")
language: str = "zh"