log
This commit is contained in:
parent
483b279353
commit
eb4fa1cdfe
|
@ -53,7 +53,7 @@ public class Seed {
|
||||||
String url = "https://pt.soulvoice.club/special.php?inclbookmarked=%s&incldead=%s&spstate=%s&page=%s&search=%s"
|
String url = "https://pt.soulvoice.club/special.php?inclbookmarked=%s&incldead=%s&spstate=%s&page=%s&search=%s"
|
||||||
.formatted(inclbookmarked, incldead, spstate, page, search);
|
.formatted(inclbookmarked, incldead, spstate, page, search);
|
||||||
String html = HttpTool.getHTML(url, okHttpClient);
|
String html = HttpTool.getHTML(url, okHttpClient);
|
||||||
log.info("html:{}", html);
|
// log.info("html:{}", html);
|
||||||
Document doc = Jsoup.parse(html);
|
Document doc = Jsoup.parse(html);
|
||||||
List<SeedListItem> listItem = HtmlTool.getSeedListItem(doc);
|
List<SeedListItem> listItem = HtmlTool.getSeedListItem(doc);
|
||||||
return ResponseEntity.ok(
|
return ResponseEntity.ok(
|
||||||
|
|
|
@ -33,6 +33,9 @@ public class HtmlTool {
|
||||||
* 标题部分
|
* 标题部分
|
||||||
*/
|
*/
|
||||||
Element torrentNames = tr.getElementsByTag("table").first();
|
Element torrentNames = tr.getElementsByTag("table").first();
|
||||||
|
if (torrentNames == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
Elements seedNames = torrentNames.getElementsByTag("td");
|
Elements seedNames = torrentNames.getElementsByTag("td");
|
||||||
String seedCover = seedNames.get(0).getElementsByTag("img").first().attr("data-src");
|
String seedCover = seedNames.get(0).getElementsByTag("img").first().attr("data-src");
|
||||||
String seedName = seedNames.get(1).getElementsByTag("a").first().attr("title");
|
String seedName = seedNames.get(1).getElementsByTag("a").first().attr("title");
|
||||||
|
|
Loading…
Reference in New Issue