mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-05 11:39:58 +08:00
增加对 EP E 的识别
This commit is contained in:
@@ -86,16 +86,16 @@ class APIProcess:
|
||||
return json_config.load(CONFIG_PATH)
|
||||
|
||||
def get_rss(self, full_path: str):
|
||||
url = f"https://mikanani.me/RSS/{full_path}"
|
||||
url = f"https://mikanime.tv/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://mikanani.me", custom_url, content)
|
||||
return re.sub(r"https://mikanime.tv", custom_url, content)
|
||||
|
||||
@staticmethod
|
||||
def get_torrent(full_path):
|
||||
url = f"https://mikanani.me/Download/{full_path}"
|
||||
url = f"https://mikanime.tv/Download/{full_path}"
|
||||
with RequestContent() as request:
|
||||
return request.get_content(url)
|
||||
|
||||
@@ -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.tv", description="Custom RSS host url")
|
||||
custom_url: str = Field("mikanime.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"
|
||||
|
||||
@@ -19,7 +19,7 @@ RULES = [
|
||||
r"(.*)[\[ E](\d{1,3}|\d{1,3}\.\d{1,2})(?:v\d{1,2})?(?: )?(?:END)?[\] ](.*)",
|
||||
r"(.*)\[(?:第)?(\d*\.*\d*)[话集話](?:END)?\](.*)",
|
||||
r"(.*)第(\d*\.*\d*)[话話集](?:END)?(.*)",
|
||||
r"(.*)E(\d{1,4})(.*)",
|
||||
r"(.*)EP?(\d{1,4})(.*)",
|
||||
]
|
||||
|
||||
SUBTITLE_LANG = {
|
||||
|
||||
Reference in New Issue
Block a user