better-ffmpeg-progress 2.5.6__tar.gz → 2.5.7__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: 2.5.6
3
+ Version: 2.5.7
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
@@ -176,3 +176,6 @@ The `run` method takes the following **optional** arguments:
176
176
 
177
177
  [13/11/2024]
178
178
  - [v2.5.6] Detect a wider range of errors.
179
+
180
+ [18/11/2024]
181
+ - [v2.5.7] Fix syntax. Should fix issue #26
@@ -157,4 +157,7 @@ The `run` method takes the following **optional** arguments:
157
157
  - [v2.5.5] Print detected errors in the terminal and only set `shell=True` if shell operators are detected.
158
158
 
159
159
  [13/11/2024]
160
- - [v2.5.6] Detect a wider range of errors.
160
+ - [v2.5.6] Detect a wider range of errors.
161
+
162
+ [18/11/2024]
163
+ - [v2.5.7] Fix syntax. Should fix issue #26
@@ -279,7 +279,7 @@ class FfmpegProcess:
279
279
  self._kill_process_and_children(process.pid)
280
280
  self._write_to_log_file("\n[KeyboardInterrupt] FFmpeg process(es) killed.")
281
281
  sys.exit(
282
- f"{"\n" if self._duration_secs is None else ""}[KeyboardInterrupt] FFmpeg process(es) killed."
282
+ f"{'\n' if self._duration_secs is None else ''}[KeyboardInterrupt] FFmpeg process(es) killed."
283
283
  )
284
284
 
285
285
  # After the process ends, drain any remaining stderr
@@ -328,7 +328,7 @@ class FfmpegProcess:
328
328
  pass
329
329
 
330
330
  print(
331
- f"Executing: {' '.join(self._ffmpeg_command)}{"\n" if self._duration_secs is None else ""}"
331
+ f"Executing: {' '.join(self._ffmpeg_command)}{'\n' if self._duration_secs is None else ''}"
332
332
  )
333
333
 
334
334
  if self._duration_secs and not progress_handler:
@@ -374,14 +374,14 @@ class FfmpegProcess:
374
374
  error_handler()
375
375
 
376
376
  sys.exit(
377
- f"FFmpeg process failed with return code {return_code}.\nError(s):\n{"\n".join(self._error_messages)}\nCheck out '{self._ffmpeg_log_file}' for more details."
377
+ f"FFmpeg process failed with return code {return_code}.\nError(s):\n{'\n'.join(self._error_messages)}\nCheck out '{self._ffmpeg_log_file}' for more details."
378
378
  )
379
379
 
380
380
  if success_handler:
381
381
  success_handler()
382
382
  else:
383
383
  print(
384
- f"{"\n" if self._duration_secs is None else ""}FFmpeg process completed."
384
+ f"{'\n' if self._duration_secs is None else ''}FFmpeg process completed."
385
385
  )
386
386
 
387
387
  def _kill_process_and_children(self, proc_pid: int) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: better-ffmpeg-progress
3
- Version: 2.5.6
3
+ Version: 2.5.7
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
@@ -176,3 +176,6 @@ The `run` method takes the following **optional** arguments:
176
176
 
177
177
  [13/11/2024]
178
178
  - [v2.5.6] Detect a wider range of errors.
179
+
180
+ [18/11/2024]
181
+ - [v2.5.7] Fix syntax. Should fix issue #26
@@ -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="2.5.6",
8
+ version="2.5.7",
9
9
  author="GitHub.com/CrypticSignal",
10
10
  author_email="theaudiophile@outlook.com",
11
11
  description="Run FFmpeg & see percentage progress + ETA.",