blank X 8 months ago
parent 10a734006b
commit 084bd51ac4
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
  1. 2
      main.go

@ -147,7 +147,7 @@ func main() {
if domain == "imgur.com" || strings.HasSuffix(domain, ".imgur.com") {
parsedUrl.Host = "i.imgur.com"
if strings.HasPrefix(path, "/a/") || strings.HasPrefix(path, "/gallery/") {
albumId := strings.SplitN(path, "/", 4)[2]
albumId := strings.SplitN(strings.SplitN(path, "/", 4)[2], ".", 2)[0]
imgurImages, err := GetImgurAlbum(client, albumId)
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to get imgur album: %s\n", err)