mirror of
https://github.com/k4yt3x/video2x.git
synced 2026-03-06 23:29:37 +08:00
Fix k4yt3x#211 bug
This commit is contained in:
@@ -352,7 +352,7 @@ image_format = config['video2x']['image_format'].lower()
|
||||
preserve_frames = config['video2x']['preserve_frames']
|
||||
|
||||
# load cache directory
|
||||
if isinstance(config['video2x']['video2x_cache_directory'], str):
|
||||
if config['video2x']['video2x_cache_directory'] is not None:
|
||||
video2x_cache_directory = pathlib.Path(config['video2x']['video2x_cache_directory'])
|
||||
else:
|
||||
video2x_cache_directory = pathlib.Path(tempfile.gettempdir()) / 'video2x'
|
||||
|
||||
Reference in New Issue
Block a user