From 2ae365c5fe8b4c213ab7f30be3a370db83586f0e Mon Sep 17 00:00:00 2001 From: EstrellaXD Date: Sat, 6 May 2023 11:03:16 +0800 Subject: [PATCH] Fix official problem --- docs/wiki | 2 +- src/module/core/api_func.py | 6 +++--- src/module/models/config.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/wiki b/docs/wiki index 4b8d32e6..a49828bf 160000 --- a/docs/wiki +++ b/docs/wiki @@ -1 +1 @@ -Subproject commit 4b8d32e6e01cd8d02e833caa04ec23c100befe84 +Subproject commit a49828bf9c81da27812639924855d99b0e3b0760 diff --git a/src/module/core/api_func.py b/src/module/core/api_func.py index 46b841ea..69bc482a 100644 --- a/src/module/core/api_func.py +++ b/src/module/core/api_func.py @@ -86,16 +86,16 @@ class APIProcess: return json_config.load(CONFIG_PATH) def get_rss(self, full_path: str): - url = f"https://mikanime.tv/RSS/{full_path}" + url = f"https://mikanani.me/RSS/{full_path}" custom_url = self._custom_url if "://" not in custom_url: custom_url = f"https://{custom_url}" with RequestContent() as request: content = request.get_html(url) - return re.sub(r"https://mikanime.tv", custom_url, content) + return re.sub(r"https://mikanani.me", custom_url, content) @staticmethod def get_torrent(full_path): - url = f"https://mikanime.tv/Download/{full_path}" + url = f"https://mikanani.me/Download/{full_path}" with RequestContent() as request: return request.get_content(url) diff --git a/src/module/models/config.py b/src/module/models/config.py index d591160f..1690cafe 100644 --- a/src/module/models/config.py +++ b/src/module/models/config.py @@ -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("mikanime.tv", description="Custom RSS host url") + custom_url: str = Field("mikanani.me", 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"