summary refs log tree commit diff stats
path: root/pkg/unsplash
diff options
context:
space:
mode:
authorAndinus <andinus@inventati.org>2020-03-14 13:31:45 +0530
committerAndinus <andinus@inventati.org>2020-03-14 13:31:45 +0530
commitf0a905d77552a740194da4582b5447af58254e26 (patch)
treeaf1851951e2889901eac85444acedd9345b887cb /pkg/unsplash
parentea8a01e9ae40f5478167abcf4563682adc77efb6 (diff)
downloadcetus-f0a905d77552a740194da4582b5447af58254e26.tar.gz
Fix SetFromID & add usage in readme
Diffstat (limited to 'pkg/unsplash')
-rw-r--r--pkg/unsplash/unsplash.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/unsplash/unsplash.go b/pkg/unsplash/unsplash.go
index 3070716..e40503d 100644
--- a/pkg/unsplash/unsplash.go
+++ b/pkg/unsplash/unsplash.go
@@ -29,7 +29,7 @@ func SetFromID(photoID string, width int, height int) error {
 		err error
 	)
 
-	size = fmt.Sprintf("%sx%s", width, height)
+	size = fmt.Sprintf("%dx%d", width, height)
 	path = fmt.Sprintf("%s/%s/%s", "https://source.unsplash.com", photoID, size)
 	err = background.Set(path)
 
a> 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144