Update download.go
This commit is contained in:
parent
3a3b768042
commit
6c5c181a96
|
@ -121,7 +121,7 @@ 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)
|
fmt.Print(post.File.URL)
|
||||||
|
|
||||||
resp, err := e621.HTTPGet(post.File.URL)
|
resp, err := e621.HTTPGet(post.File.URL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue