diff --git a/cmd/search.go b/cmd/search.go index 62125b4..1373b38 100644 --- a/cmd/search.go +++ b/cmd/search.go @@ -55,17 +55,13 @@ var ( Items: titles, } - resultInt, result, err := prompt.Run() + resultInt, _, err := prompt.Run() if err != nil { fmt.Printf("Prompt failed %v\n", err) return } - log.Printf("You choose [%s]", result) - - log.Println("Selection: ", resultInt, books[resultInt]) - api.DownloadSelection(books[resultInt], libgenType) }, } diff --git a/pkg/api/libgen.go b/pkg/api/libgen.go index df6d3b1..4840582 100644 --- a/pkg/api/libgen.go +++ b/pkg/api/libgen.go @@ -155,7 +155,7 @@ func getLinkFromDocumentNew(document *goquery.Document) (string, bool) { } func getDirectDownloadLink(link string, libgenType MirrorType) string { - log.Println("Obtaining direct download link ...") + log.Println("Obtaining direct download link") resp, err := http.Get(link)