mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-13 17:19:56 +08:00
fix: update search default option.
This commit is contained in:
@@ -6,7 +6,7 @@ class RSSItem(SQLModel, table=True):
|
||||
id: int = Field(default=None, primary_key=True, alias="id")
|
||||
name: Optional[str] = Field(None, alias="name")
|
||||
url: str = Field("https://mikanani.me", alias="url")
|
||||
aggregate: bool = Field(True, alias="aggregate")
|
||||
aggregate: bool = Field(False, alias="aggregate")
|
||||
parser: str = Field("mikan", alias="parser")
|
||||
enabled: bool = Field(True, alias="enabled")
|
||||
|
||||
|
||||
@@ -12,9 +12,10 @@ def search_url(site: str, keywords: list[str]) -> RSSItem:
|
||||
search_str = re.sub(r"[\W_ ]", "+", keyword)
|
||||
if site in SEARCH_CONFIG.keys():
|
||||
url = re.sub(r"%s", search_str, SEARCH_CONFIG[site])
|
||||
parser = "mikan" if site == "mikan" else "tmdb"
|
||||
rss_item = RSSItem(
|
||||
url=url,
|
||||
parser="mikan"
|
||||
parser=parser,
|
||||
)
|
||||
return rss_item
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user