better-ffmpeg-progress 2.1.2__tar.gz → 2.1.4__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.1.2
3
+ Version: 2.1.4
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
@@ -121,6 +121,14 @@ Description: <div align="center">
121
121
 
122
122
  - [v2.1.2] [Do not exit the Python interpreter after the FFmpeg process is complete](https://github.com/CrypticSignal/better-ffmpeg-progress/commit/0a358810773835297faae688689c6e0d8a5859ae)
123
123
 
124
+ [22/04/2024]
125
+
126
+ - [v2.1.3] Fix issue [#20](https://github.com/CrypticSignal/better-ffmpeg-progress/issues/20)
127
+
128
+ [28/04/2024]
129
+
130
+ - [v2.1.4] Fix issue [#21](https://github.com/CrypticSignal/better-ffmpeg-progress/issues/21)
131
+
124
132
  Keywords: ffmpeg,progress
125
133
  Platform: UNKNOWN
126
134
  Classifier: Programming Language :: Python :: 3
@@ -112,3 +112,11 @@ The `run` method takes the following **optional** arguments:
112
112
  [05/11/2023]
113
113
 
114
114
  - [v2.1.2] [Do not exit the Python interpreter after the FFmpeg process is complete](https://github.com/CrypticSignal/better-ffmpeg-progress/commit/0a358810773835297faae688689c6e0d8a5859ae)
115
+
116
+ [22/04/2024]
117
+
118
+ - [v2.1.3] Fix issue [#20](https://github.com/CrypticSignal/better-ffmpeg-progress/issues/20)
119
+
120
+ [28/04/2024]
121
+
122
+ - [v2.1.4] Fix issue [#21](https://github.com/CrypticSignal/better-ffmpeg-progress/issues/21)
@@ -52,7 +52,7 @@ class FfmpegProcess:
52
52
  if self._can_get_duration:
53
53
  self._ffmpeg_args += ["-progress", "pipe:1", "-nostats"]
54
54
 
55
- def _should_overwrite(self):
55
+ def _should_run_ffmpeg(self):
56
56
  dirname = os.path.dirname(self._output_filepath)
57
57
  self._dir_files = (
58
58
  [file for file in os.listdir(dirname)] if dirname else [file for file in os.listdir()]
@@ -70,6 +70,8 @@ class FfmpegProcess:
70
70
  self._ffmpeg_args.insert(1, "-y")
71
71
  return True
72
72
 
73
+ return True
74
+
73
75
  def _update_progress(self, ffmpeg_output, progress_handler):
74
76
  if ffmpeg_output:
75
77
  value = ffmpeg_output.split("=")[1].strip()
@@ -101,7 +103,7 @@ class FfmpegProcess:
101
103
  elif "speed" in ffmpeg_output:
102
104
  speed_str = value[:-1]
103
105
 
104
- if speed_str != "0" and "N/A" not in speed_str:
106
+ if speed_str != "0" and "N/A" not in value:
105
107
  self._speed = float(speed_str)
106
108
 
107
109
  if self._can_get_duration:
@@ -124,7 +126,7 @@ class FfmpegProcess:
124
126
  success_handler=None,
125
127
  error_handler=None,
126
128
  ):
127
- if not self._should_overwrite():
129
+ if not self._should_run_ffmpeg():
128
130
  return
129
131
 
130
132
  if ffmpeg_output_file is None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: better-ffmpeg-progress
3
- Version: 2.1.2
3
+ Version: 2.1.4
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
@@ -121,6 +121,14 @@ Description: <div align="center">
121
121
 
122
122
  - [v2.1.2] [Do not exit the Python interpreter after the FFmpeg process is complete](https://github.com/CrypticSignal/better-ffmpeg-progress/commit/0a358810773835297faae688689c6e0d8a5859ae)
123
123
 
124
+ [22/04/2024]
125
+
126
+ - [v2.1.3] Fix issue [#20](https://github.com/CrypticSignal/better-ffmpeg-progress/issues/20)
127
+
128
+ [28/04/2024]
129
+
130
+ - [v2.1.4] Fix issue [#21](https://github.com/CrypticSignal/better-ffmpeg-progress/issues/21)
131
+
124
132
  Keywords: ffmpeg,progress
125
133
  Platform: UNKNOWN
126
134
  Classifier: Programming Language :: Python :: 3
@@ -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.1.2",
8
+ version="2.1.4",
9
9
  author="GitHub.com/CrypticSignal",
10
10
  author_email="theaudiophile@outlook.com",
11
11
  description="Run FFmpeg & see percentage progress + ETA.",