We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1631605 commit df02926Copy full SHA for df02926
backend/src/module/parser/analyser/mikan_parser.py
@@ -19,8 +19,14 @@ def mikan_parser(homepage: str):
19
official_title = re.sub(r"第.*季", "", official_title).strip()
20
if poster_div:
21
poster_path = poster_div.split("url('")[1].split("')")[0]
22
+ poster_path = poster_path.split("?")[0]
23
img = req.get_content(f"https://{root_path}{poster_path}")
24
suffix = poster_path.split(".")[-1]
25
poster_link = save_image(img, suffix)
26
return poster_link, official_title
27
return "", ""
28
+
29
30
+if __name__ == '__main__':
31
+ homepage = "https://mikanani.me/Home/Episode/c89b3c6f0c1c0567a618f5288b853823c87a9862"
32
+ print(mikan_parser(homepage))
0 commit comments