fix: windows installer fixed, now uses "zipball_url" for gifski

This commit is contained in:
konqi 2020-11-18 20:56:56 +01:00
parent 608bf1a2ec
commit f850ca80f1

View File

@ -155,8 +155,8 @@ class Video2xSetup:
latest_release = requests.get('https://api.github.com/repos/ImageOptim/gifski/releases/latest').json() latest_release = requests.get('https://api.github.com/repos/ImageOptim/gifski/releases/latest').json()
for a in latest_release['assets']: for a in latest_release['assets']:
if re.search(r'gifski-.*\.tar\.xz', a['browser_download_url']): if re.search(r'gifski-.*\.tar\.xz\.7z', a['browser_download_url']):
gifski_tar_gz = download(a['browser_download_url'], tempfile.gettempdir()) gifski_tar_gz = download(a['zipball_url'], tempfile.gettempdir())
self.trash.append(gifski_tar_gz) self.trash.append(gifski_tar_gz)
# extract and rename # extract and rename