fix crash when using --no-download with --ugoira-conv (#1507)

This commit is contained in:
Mike Fährmann
2021-04-26 23:35:44 +02:00
parent 07b6661a87
commit e5123f56c9
3 changed files with 10 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2018-2020 Mike Fährmann
# Copyright 2018-2021 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -76,8 +76,12 @@ class UgoiraPP(PostProcessor):
with tempfile.TemporaryDirectory() as tempdir:
# extract frames
with zipfile.ZipFile(pathfmt.temppath) as zfile:
zfile.extractall(tempdir)
try:
with zipfile.ZipFile(pathfmt.temppath) as zfile:
zfile.extractall(tempdir)
except FileNotFoundError:
pathfmt.temppath = pathfmt.realpath
return
# write ffconcat file
ffconcat = tempdir + "/ffconcat.txt"