diff options
Diffstat (limited to 'libs/fese/container.py')
-rw-r--r-- | libs/fese/container.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/fese/container.py b/libs/fese/container.py index 21dfc20da..5f2c70371 100644 --- a/libs/fese/container.py +++ b/libs/fese/container.py @@ -54,7 +54,10 @@ def _ffmpeg_call(command, log_callback=None, progress_callback=None, timeout=100 if match: size, time_, bitrate, speed = match.groups() info = {"size": size, "time": time_, "bitrate": bitrate, "speed": speed} - progress_callback(info) + else: + info = {"size": "n/a", "time": "n/a", "bitrate": "n/a", "speed": "n/a"} + + progress_callback(info) if timeout is not None and time.time() - start > timeout: proc.kill() |