Skip to content

Commit 3518667

Browse files
committed
update ffmpeg-progress-yield to clean up properly
1 parent 90f7d5d commit 3518667

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

ffmpeg_normalize/_cmd_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ def run_ffmpeg_command(self, cmd: list[str]) -> Iterator[float]:
7575
"""
7676
# wrapper for 'ffmpeg-progress-yield'
7777
_logger.debug(f"Running command: {shlex.join(cmd)}")
78-
ff = FfmpegProgress(cmd, dry_run=self.dry)
79-
yield from ff.run_command_with_progress()
78+
with FfmpegProgress(cmd, dry_run=self.dry) as ff:
79+
yield from ff.run_command_with_progress()
8080

81-
self.output = ff.stderr
81+
self.output = ff.stderr
8282

8383
if _logger.getEffectiveLevel() == logging.DEBUG and self.output is not None:
8484
_logger.debug(

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tqdm>=4.64.1
22
colorama>=0.4.6
3-
ffmpeg-progress-yield>=0.11.0
3+
ffmpeg-progress-yield>=1.0.1
44
colorlog==6.7.0
55
mutagen>=1.47.0

0 commit comments

Comments
 (0)