fix: searcher bug.

This commit is contained in:
EstrellaXD
2023-08-15 20:34:38 +08:00
parent 079f3d6f9d
commit c4c4bfcdb6

View File

@@ -11,7 +11,7 @@ def search_url(site: str, keywords: list[str]) -> RSSItem:
keyword = "+".join(keywords)
search_str = re.sub(r"[\W_ ]", "+", keyword)
if site in SEARCH_CONFIG.keys():
url = re.sub(r"%s", search_str, SEARCH_CONFIG[site].get("url"))
url = re.sub(r"%s", search_str, SEARCH_CONFIG[site])
rss_item = RSSItem(
url=url,
parser="mikan"