better-ffmpeg-progress 3.0.0__tar.gz → 3.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: better-ffmpeg-progress
3
- Version: 3.0.0
3
+ Version: 3.1.0
4
4
  Summary: Run FFmpeg & see percentage progress + ETA.
5
5
  Home-page: https://github.com/CrypticSignal/better-ffmpeg-progress
6
6
  Author: GitHub.com/CrypticSignal
@@ -251,10 +251,21 @@ class FfmpegProcess:
251
251
  except Empty:
252
252
  break
253
253
 
254
- if process.returncode == 0 and task_id is not None:
254
+ progress_bar.columns = (
255
+ TextColumn("[progress.description]{task.description}"),
256
+ )
257
+
258
+ if process.returncode != 0:
255
259
  progress_bar.update(
256
- task_id, description=f"✓ Processed {self._input_filepath.name}"
260
+ task_id,
261
+ description=f"The FFmpeg process did not complete successfully. Check out {self._ffmpeg_log_file} for details.",
257
262
  )
263
+ return 1
264
+
265
+ progress_bar.update(
266
+ task_id,
267
+ description=f"✓ Processed {self._input_filepath.name}",
268
+ )
258
269
 
259
270
  except KeyboardInterrupt:
260
271
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: better-ffmpeg-progress
3
- Version: 3.0.0
3
+ Version: 3.1.0
4
4
  Summary: Run FFmpeg & see percentage progress + ETA.
5
5
  Home-page: https://github.com/CrypticSignal/better-ffmpeg-progress
6
6
  Author: GitHub.com/CrypticSignal
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as f:
5
5
 
6
6
  setuptools.setup(
7
7
  name="better-ffmpeg-progress",
8
- version="3.0.0",
8
+ version="3.1.0",
9
9
  author="GitHub.com/CrypticSignal",
10
10
  author_email="theaudiophile@outlook.com",
11
11
  description="Run FFmpeg & see percentage progress + ETA.",