Update download.go

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

View File

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