better-ffmpeg-progress 2.4.0__tar.gz → 2.4.1__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.4.0
3
+ Version: 2.4.1
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
@@ -171,3 +171,4 @@ The `run` method takes the following **optional** arguments:
171
171
 
172
172
  [31/10/2024]
173
173
  - [v2.4.0] Print FFmpeg stderr if better progress information cannot be shown.
174
+ - [v2.4.0] Flush the stream when printing FFmpeg stderr to ensure that it is printed immediately.
@@ -152,4 +152,5 @@ The `run` method takes the following **optional** arguments:
152
152
  - [v2.3.1] Kill FFmpeg process(es) on KeyboardInterrupt
153
153
 
154
154
  [31/10/2024]
155
- - [v2.4.0] Print FFmpeg stderr if better progress information cannot be shown.
155
+ - [v2.4.0] Print FFmpeg stderr if better progress information cannot be shown.
156
+ - [v2.4.0] Flush the stream when printing FFmpeg stderr to ensure that it is printed immediately.
@@ -225,7 +225,7 @@ class FfmpegProcess:
225
225
  stderr = stderr_queue.get_nowait()
226
226
 
227
227
  if self._duration_secs is None:
228
- print(stderr, end="\r")
228
+ print(stderr, end="\r", flush=True)
229
229
 
230
230
  self._ffmpeg_stderr.append(stderr)
231
231
  except Empty:
@@ -233,7 +233,9 @@ class FfmpegProcess:
233
233
 
234
234
  except KeyboardInterrupt:
235
235
  self._kill_process_and_children(process.pid)
236
- sys.exit("[KeyboardInterrupt] FFmpeg process(es) killed.")
236
+ sys.exit(
237
+ f"{"\n" if self._duration_secs is None else ""}[KeyboardInterrupt] FFmpeg process(es) killed."
238
+ )
237
239
 
238
240
  return process.returncode
239
241
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: better-ffmpeg-progress
3
- Version: 2.4.0
3
+ Version: 2.4.1
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
@@ -171,3 +171,4 @@ The `run` method takes the following **optional** arguments:
171
171
 
172
172
  [31/10/2024]
173
173
  - [v2.4.0] Print FFmpeg stderr if better progress information cannot be shown.
174
+ - [v2.4.0] Flush the stream when printing FFmpeg stderr to ensure that it is printed immediately.
@@ -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.4.0",
8
+ version="2.4.1",
9
9
  author="GitHub.com/CrypticSignal",
10
10
  author_email="theaudiophile@outlook.com",
11
11
  description="Run FFmpeg & see percentage progress + ETA.",