summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@inventati.org>2020-03-15 13:07:25 +0530
committerAndinus <andinus@inventati.org>2020-03-15 13:07:25 +0530
commit944222f65a6c633e28638cba6ada5c7154aef3ed (patch)
treec57b5d040bff7d4d73b0cff2ecf385de9da5b35b
parent5ea5932cdf7f217511c215840d634fefd13f3ba6 (diff)
downloadcetus-944222f65a6c633e28638cba6ada5c7154aef3ed.tar.gz
Fix url on media types other than image
-rw-r--r--cmd/cetus-nasa/cetus-nasa.go2
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)
 }