summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--cmd/cetus-nasa/cetus-nasa.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/cetus-nasa/cetus-nasa.go b/cmd/cetus-nasa/cetus-nasa.go
index d90a08b..5f018cb 100644
--- a/cmd/cetus-nasa/cetus-nasa.go
+++ b/cmd/cetus-nasa/cetus-nasa.go
@@ -119,6 +119,10 @@ func printDetails(apodRes nasa.APOD) {
 	fmt.Printf("Copyright: %s\n", apodRes.Copyright)
 	fmt.Printf("Date: %s\n\n", apodRes.Date)
 	fmt.Printf("Media Type: %s\n", apodRes.MediaType)
-	fmt.Printf("URL: %s\n\n", apodRes.HDURL)
+	if apodRes.MediaType == "image" {
+		fmt.Printf("URL: %s\n\n", apodRes.HDURL)
+	} else {
+		fmt.Printf("URL: %s\n\n", apodRes.HDURL)
+	}
 	fmt.Printf("Explanation: %s\n", apodRes.Explanation)
 }
y?h=v1.7.0-emacs&id=26962ded19264ae1885386783c861d002d8fd1dc'>^
3cd8a402 ^
8a5944e1 ^

3cd8a402 ^
27eec7c6 ^
d1a1173d ^







b3660b9a ^
d1a1173d ^
3b96a37f ^




4feb2e15 ^
3b96a37f ^


3b96a37f ^
8a5944e1 ^

3cd8a402 ^


d1a1173d ^








d1a1173d ^
e6b847b3 ^
225aa78f ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50