Update download.go

This commit is contained in:
BitHeaven 2022-11-10 20:13:24 +05:00 committed by GitHub
parent 3a3b768042
commit 6c5c181a96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ func getSavePath(post *e621.Post, directory *string) string {
func downloadPost(post *e621.Post, directory string) error {
savePath := getSavePath(post, &directory)
fmt.Print(post)
fmt.Print(post.File.URL)
resp, err := e621.HTTPGet(post.File.URL)
if err != nil {