Skip to content

Commit

Permalink
declutter logs
Browse files Browse the repository at this point in the history
  • Loading branch information
laureanray committed Jun 29, 2022
1 parent 5100b09 commit fceff20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions cmd/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/libgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit fceff20

Please sign in to comment.