Skip to content

Commit 6be06bd

Browse files
committed
修复蜜柑因网页改版导致爬取数据错误
1 parent 353c9fd commit 6be06bd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

AnimeCalendar.Api/Mikanime/BangumiPage.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ public Identifier[] Subgroups
4040
public SimpleEpisode[] GetEpisodes(int subgroupId) {
4141
HtmlNode table = RootNode.SelectSingleNode($"//div[@id=\"{subgroupId}\"]").NextSibling.NextSibling;
4242
return table.SelectNodes(".//tr").Skip(1).Select(tr => {
43-
HtmlNode wrapNode = tr.SelectSingleNode("./td[1]/a[1]");
43+
HtmlNode wrapNode = tr.SelectSingleNode(".//td[2]/a[1]");
4444
return new SimpleEpisode(
4545
wrapNode.InnerText.Decode(),
4646
MikanimeServices.BASE_ADDRESS + wrapNode.Attributes["href"].Value,
47-
tr.SelectSingleNode("./td[2]").InnerText.Decode(),
4847
tr.SelectSingleNode("./td[3]").InnerText.Decode(),
49-
tr.SelectSingleNode("./td[1]/a[2]").Attributes["data-clipboard-text"].Value,
48+
tr.SelectSingleNode("./td[4]").InnerText.Decode(),
49+
tr.SelectSingleNode("./td[2]/a[2]").Attributes["data-clipboard-text"].Value,
5050
BangumiName
5151
);
5252
}).ToArray();

0 commit comments

Comments
 (0)