From 59eeceef499ac73f852414be016f0da5e69656a6 Mon Sep 17 00:00:00 2001 From: Sebastian Winkler Date: Sat, 15 Jun 2019 13:31:27 +0200 Subject: [PATCH] improves twitter params filename --- main.go | 2 +- vars.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index eab1d44..dbcacdb 100644 --- a/main.go +++ b/main.go @@ -369,7 +369,7 @@ func getTwitterParamsUrls(url string) (map[string]string, error) { matches := RegexpUrlTwitterParams.FindStringSubmatch(url) return map[string]string{ - "https://pbs.twimg.com/media/" + matches[3] + "." + matches[4] + ":orig": "", + "https://pbs.twimg.com/media/" + matches[3] + "." + matches[4] + ":orig": matches[3] + "." + matches[4], }, nil } diff --git a/vars.go b/vars.go index 576223c..a22ca5d 100644 --- a/vars.go +++ b/vars.go @@ -1,7 +1,7 @@ package main const ( - VERSION = "1.36" + VERSION = "1.36.1" DATABASE_DIR = "database" RELEASE_URL = "https://github.com/Seklfreak/discord-image-downloader-go/releases/latest" RELEASE_API_URL = "https://api.github.com/repos/Seklfreak/discord-image-downloader-go/releases/latest"