summary refs log tree commit diff stats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-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)
 }
nisanti/profani-tty/blame/src/command/command.h?id=0b47bba6cc8ab5267aebb7eeb8f691f87140184d'>^
a7d89e0e ^

a7df149e ^


fe519410 ^

6246c8b9 ^

2490f5b4 ^
9fd7b2b3 ^
b3f60232 ^
2490f5b4 ^
6a32ed45 ^
4c6cfcdc ^
6a32ed45 ^
5d85974b ^

6246c8b9 ^

b05e17db ^

6a32ed45 ^
3656c782 ^

b3f60232 ^
4bd06a5d ^

b3f60232 ^

8ecbe0c5 ^
a7df149e ^
c72d7ad6 ^
4c6cfcdc ^

80e62cfa ^
e0dfe483 ^

a7df149e ^
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71