better-ffmpeg-progress 3.2.4__tar.gz → 3.2.5__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: 3.2.4
3
+ Version: 3.2.5
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
@@ -3,7 +3,6 @@ import os
3
3
  from pathlib import Path
4
4
  import psutil
5
5
  import shutil
6
- from signal import CTRL_BREAK_EVENT
7
6
  import subprocess
8
7
  from typing import List, Optional, Union
9
8
 
@@ -324,6 +323,8 @@ class FfmpegProcess:
324
323
  # If running under a shell, terminate shell first
325
324
  proc.terminate()
326
325
  else:
326
+ from signal import CTRL_BREAK_EVENT
327
+
327
328
  # Send CTRL_BREAK_EVENT to entire process group
328
329
  os.kill(self._process.pid, CTRL_BREAK_EVENT)
329
330
  # Unix
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: better-ffmpeg-progress
3
- Version: 3.2.4
3
+ Version: 3.2.5
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="3.2.4",
8
+ version="3.2.5",
9
9
  author="GitHub.com/CrypticSignal",
10
10
  author_email="theaudiophile@outlook.com",
11
11
  description="Run FFmpeg & see percentage progress + ETA.",