Update download.go
This commit is contained in:
parent
355df543d3
commit
3a3b768042
|
@ -121,6 +121,8 @@ func getSavePath(post *e621.Post, directory *string) string {
|
||||||
func downloadPost(post *e621.Post, directory string) error {
|
func downloadPost(post *e621.Post, directory string) error {
|
||||||
savePath := getSavePath(post, &directory)
|
savePath := getSavePath(post, &directory)
|
||||||
|
|
||||||
|
fmt.Print(post)
|
||||||
|
|
||||||
resp, err := e621.HTTPGet(post.File.URL)
|
resp, err := e621.HTTPGet(post.File.URL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue