From 179e25d6d7709c35009fcc081fa1b403f6de4a2d Mon Sep 17 00:00:00 2001 From: laureanray Date: Mon, 22 May 2023 21:24:49 +0800 Subject: [PATCH] fix: use ipfs link instead (#10) --- pkg/api/libgen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/libgen.go b/pkg/api/libgen.go index d6a9e23..9d1bbaa 100644 --- a/pkg/api/libgen.go +++ b/pkg/api/libgen.go @@ -149,7 +149,7 @@ func getBookDataFromDocument(document *goquery.Document, libgenSite Site) []Book } func getLinkFromDocumentOld(document *goquery.Document) (string, bool) { - return document.Find("#download > h2 > a").First().Attr("href") + return document.Find("#download > ul > li > a").First().Attr("href") } func getLinkFromDocumentNew(document *goquery.Document) (string, bool) {