Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
670848654 committed Aug 14, 2022
1 parent 8286370 commit 007f36d
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -569,21 +569,24 @@ public static String getImomoePlayUrl(String source) {
*/
public static List<AnimeDescDetailsBean> getAllDrama(String source, String dramaStr) {
Document document = Jsoup.parse(source);
Elements playElements = document.select("div#tabDatelist").select("ul").get(0).select("a"); //剧集列表
List<AnimeDescDetailsBean> animeDescDramasBeans = new ArrayList<>();
for (Element dramaList : playElements) {
String name = dramaList.text();
String watchUrl = dramaList.attr("href");
animeDescDramasBeans.add(new AnimeDescDetailsBean(name, watchUrl, dramaStr.contains(watchUrl)));
}
Elements dataElement = document.select("div#tabDatelist");
if (dataElement.size() > 0) {
Elements playElements = dataElement.select("ul").get(0).select("a"); //剧集列表
for (Element dramaList : playElements) {
String name = dramaList.text();
String watchUrl = dramaList.attr("href");
animeDescDramasBeans.add(new AnimeDescDetailsBean(name, watchUrl, dramaStr.contains(watchUrl)));
}
/*Elements playElements = document.select("div#sort-item-1 > a"); //剧集列表
List<AnimeDescDetailsBean> animeDescDramasBeans = new ArrayList<>();
for (Element dramaList : playElements) {
String name = dramaList.select("span").text();
String watchUrl = dramaList.attr("href");
animeDescDramasBeans.add(new AnimeDescDetailsBean(name, watchUrl, dramaStr.contains(watchUrl)));
}*/
Log.e("size", animeDescDramasBeans.size() + "");
Log.e("size", animeDescDramasBeans.size() + "");
}
return animeDescDramasBeans;
}
/************************************** 选集解析方法结束 **************************************/
Expand Down

0 comments on commit 007f36d

Please sign in to comment.