better-ffmpeg-progress 2.5.5__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.5
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
@@ -173,3 +173,9 @@ The `run` method takes the following **optional** arguments:
173
173
  - [v2.5.3] Write FFmpeg stderr to the log file in real time.
174
174
  - [v2.5.4] Include progress info in stderr if the duration of the input file cannot be detected.
175
175
  - [v2.5.5] Print detected errors in the terminal and only set `shell=True` if shell operators are detected.
176
+
177
+ [13/11/2024]
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
@@ -154,4 +154,10 @@ The `run` method takes the following **optional** arguments:
154
154
  - [v2.5.2] Drain any remaining FFmpeg stderr after the process ends.
155
155
  - [v2.5.3] Write FFmpeg stderr to the log file in real time.
156
156
  - [v2.5.4] Include progress info in stderr if the duration of the input file cannot be detected.
157
- - [v2.5.5] Print detected errors in the terminal and only set `shell=True` if shell operators are detected.
157
+ - [v2.5.5] Print detected errors in the terminal and only set `shell=True` if shell operators are detected.
158
+
159
+ [13/11/2024]
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
@@ -214,6 +214,20 @@ class FfmpegProcess:
214
214
  "trailing",
215
215
  "unable",
216
216
  "unknown",
217
+ "no such file",
218
+ "permission denied",
219
+ "not found",
220
+ "unrecognized",
221
+ "undefined",
222
+ "unsupported",
223
+ "does not exist",
224
+ "missing",
225
+ "not available",
226
+ "cannot",
227
+ "could not",
228
+ "bad",
229
+ "wrong",
230
+ "forbidden",
217
231
  ]
218
232
 
219
233
  try:
@@ -265,7 +279,7 @@ class FfmpegProcess:
265
279
  self._kill_process_and_children(process.pid)
266
280
  self._write_to_log_file("\n[KeyboardInterrupt] FFmpeg process(es) killed.")
267
281
  sys.exit(
268
- 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."
269
283
  )
270
284
 
271
285
  # After the process ends, drain any remaining stderr
@@ -314,7 +328,7 @@ class FfmpegProcess:
314
328
  pass
315
329
 
316
330
  print(
317
- 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 ''}"
318
332
  )
319
333
 
320
334
  if self._duration_secs and not progress_handler:
@@ -360,14 +374,14 @@ class FfmpegProcess:
360
374
  error_handler()
361
375
 
362
376
  sys.exit(
363
- 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."
364
378
  )
365
379
 
366
380
  if success_handler:
367
381
  success_handler()
368
382
  else:
369
383
  print(
370
- 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."
371
385
  )
372
386
 
373
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.5
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
@@ -173,3 +173,9 @@ The `run` method takes the following **optional** arguments:
173
173
  - [v2.5.3] Write FFmpeg stderr to the log file in real time.
174
174
  - [v2.5.4] Include progress info in stderr if the duration of the input file cannot be detected.
175
175
  - [v2.5.5] Print detected errors in the terminal and only set `shell=True` if shell operators are detected.
176
+
177
+ [13/11/2024]
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.5",
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.",