diff options
author | Andinus <andinus@inventati.org> | 2020-03-15 13:07:25 +0530 |
---|---|---|
committer | Andinus <andinus@inventati.org> | 2020-03-15 13:07:25 +0530 |
commit | 944222f65a6c633e28638cba6ada5c7154aef3ed (patch) | |
tree | c57b5d040bff7d4d73b0cff2ecf385de9da5b35b /cmd/cetus-nasa/cetus-nasa.go | |
parent | 5ea5932cdf7f217511c215840d634fefd13f3ba6 (diff) | |
download | cetus-944222f65a6c633e28638cba6ada5c7154aef3ed.tar.gz |
Fix url on media types other than image
Diffstat (limited to 'cmd/cetus-nasa/cetus-nasa.go')
-rw-r--r-- | cmd/cetus-nasa/cetus-nasa.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cetus-nasa/cetus-nasa.go b/cmd/cetus-nasa/cetus-nasa.go index 39b22c0..d462455 100644 --- a/cmd/cetus-nasa/cetus-nasa.go +++ b/cmd/cetus-nasa/cetus-nasa.go @@ -117,7 +117,7 @@ func printDetails(apodRes nasa.APOD) { if apodRes.MediaType == "image" { fmt.Printf("URL: %s\n\n", apodRes.HDURL) } else { - fmt.Printf("URL: %s\n\n", apodRes.HDURL) + fmt.Printf("URL: %s\n\n", apodRes.URL) } fmt.Printf("Explanation: %s\n", apodRes.Explanation) } |