better-ffmpeg-progress 2.1.2__tar.gz → 2.1.3__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.3
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
@@ -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()
@@ -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.3
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="2.1.2",
8
+ version="2.1.3",
9
9
  author="GitHub.com/CrypticSignal",
10
10
  author_email="theaudiophile@outlook.com",
11
11
  description="Run FFmpeg & see percentage progress + ETA.",