We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 560330e commit 16cb597Copy full SHA for 16cb597
src/zimscraperlib/video/encoding.py
@@ -5,6 +5,7 @@
5
from copy import deepcopy
6
7
from zimscraperlib import logger
8
+from zimscraperlib.filesystem import path_from
9
from zimscraperlib.logging import nicer_args_join
10
11
@@ -53,7 +54,7 @@ def reencode(
53
54
failsafe - Run in failsafe mode
55
"""
56
- with existing_tmp_path or tempfile.TemporaryDirectory() as tmp_dir:
57
+ with path_from(existing_tmp_path or tempfile.TemporaryDirectory()) as tmp_dir:
58
59
tmp_path = pathlib.Path(tmp_dir).joinpath(f"video.tmp{dst_path.suffix}")
60
args = _build_ffmpeg_args(
0 commit comments