mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-03-03 21:12:13 +00:00
temporary fix for Anime4K download
This commit is contained in:
parent
2b63b5f0a6
commit
9d72bad314
@ -5,7 +5,7 @@ Name: Video2X Setup Script
|
|||||||
Author: K4YT3X
|
Author: K4YT3X
|
||||||
Author: BrianPetkovsek
|
Author: BrianPetkovsek
|
||||||
Date Created: November 28, 2018
|
Date Created: November 28, 2018
|
||||||
Last Modified: August 16, 2019
|
Last Modified: August 20, 2019
|
||||||
|
|
||||||
Dev: SAT3LL
|
Dev: SAT3LL
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ class Video2xSetup:
|
|||||||
print('\nInstalling Python libraries')
|
print('\nInstalling Python libraries')
|
||||||
self._install_python_requirements()
|
self._install_python_requirements()
|
||||||
|
|
||||||
print('\nInstalling FFMPEG')
|
print('\nInstalling FFmpeg')
|
||||||
self._install_ffmpeg()
|
self._install_ffmpeg()
|
||||||
|
|
||||||
if self.driver == 'all':
|
if self.driver == 'all':
|
||||||
@ -199,6 +199,8 @@ class Video2xSetup:
|
|||||||
""" Install Anime4K
|
""" Install Anime4K
|
||||||
"""
|
"""
|
||||||
print('\nInstalling Anime4K')
|
print('\nInstalling Anime4K')
|
||||||
|
|
||||||
|
"""
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
# get latest release of Anime4K via Github API
|
# get latest release of Anime4K via Github API
|
||||||
@ -210,6 +212,12 @@ class Video2xSetup:
|
|||||||
if 'Anime4K_Java.zip' in a['browser_download_url']:
|
if 'Anime4K_Java.zip' in a['browser_download_url']:
|
||||||
anime4k_zip = download(a['browser_download_url'], tempfile.gettempdir())
|
anime4k_zip = download(a['browser_download_url'], tempfile.gettempdir())
|
||||||
self.trash.append(anime4k_zip)
|
self.trash.append(anime4k_zip)
|
||||||
|
"""
|
||||||
|
|
||||||
|
# since Java pre-compiled release has been removed from download
|
||||||
|
# page, we use this cached version as a temporary solution
|
||||||
|
anime4k_zip = download('https://files.flexio.org/Resources/anime4k.zip', tempfile.gettempdir())
|
||||||
|
self.trash.append(anime4k_zip)
|
||||||
|
|
||||||
# extract and rename
|
# extract and rename
|
||||||
with zipfile.ZipFile(anime4k_zip) as zipf:
|
with zipfile.ZipFile(anime4k_zip) as zipf:
|
||||||
|
Loading…
Reference in New Issue
Block a user