mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-05-04 16:03:02 +08:00
fix: mikan official title encode problem.
This commit is contained in:
@@ -16,7 +16,7 @@ def mikan_parser(homepage: str):
|
||||
official_title = soup.select_one(
|
||||
'p.bangumi-title a[href^="/Home/Bangumi/"]'
|
||||
).text
|
||||
official_title = re.sub(r"第.*季", "", official_title)
|
||||
official_title = re.sub(r"第.*季", "", official_title).strip()
|
||||
if poster_div:
|
||||
poster_path = poster_div.split("url('")[1].split("')")[0]
|
||||
img = req.get_content(f"https://{root_path}{poster_path}")
|
||||
|
||||
Reference in New Issue
Block a user