From 19c3c379a94c0aacec3430c50db9dbdead1092c3 Mon Sep 17 00:00:00 2001 From: laureanray Date: Mon, 22 May 2023 21:20:53 +0800 Subject: [PATCH] fix: use ipfs link instead --- 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) {