talks-reducer 0.2.22__py3-none-any.whl → 0.2.24__py3-none-any.whl
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.
- talks_reducer/cli.py +14 -0
- talks_reducer/gui.py +10 -2
- {talks_reducer-0.2.22.dist-info → talks_reducer-0.2.24.dist-info}/METADATA +1 -1
- {talks_reducer-0.2.22.dist-info → talks_reducer-0.2.24.dist-info}/RECORD +8 -8
- {talks_reducer-0.2.22.dist-info → talks_reducer-0.2.24.dist-info}/WHEEL +0 -0
- {talks_reducer-0.2.22.dist-info → talks_reducer-0.2.24.dist-info}/entry_points.txt +0 -0
- {talks_reducer-0.2.22.dist-info → talks_reducer-0.2.24.dist-info}/licenses/LICENSE +0 -0
- {talks_reducer-0.2.22.dist-info → talks_reducer-0.2.24.dist-info}/top_level.txt +0 -0
talks_reducer/cli.py
CHANGED
@@ -6,6 +6,7 @@ import argparse
|
|
6
6
|
import os
|
7
7
|
import sys
|
8
8
|
import time
|
9
|
+
from importlib.metadata import version
|
9
10
|
from pathlib import Path
|
10
11
|
from typing import Dict, List, Optional, Sequence
|
11
12
|
|
@@ -22,6 +23,19 @@ def _build_parser() -> argparse.ArgumentParser:
|
|
22
23
|
parser = argparse.ArgumentParser(
|
23
24
|
description="Modifies a video file to play at different speeds when there is sound vs. silence.",
|
24
25
|
)
|
26
|
+
|
27
|
+
# Add version argument
|
28
|
+
try:
|
29
|
+
pkg_version = version("talks-reducer")
|
30
|
+
except Exception:
|
31
|
+
pkg_version = "unknown"
|
32
|
+
|
33
|
+
parser.add_argument(
|
34
|
+
"--version",
|
35
|
+
action="version",
|
36
|
+
version=f"talks-reducer {pkg_version}",
|
37
|
+
)
|
38
|
+
|
25
39
|
parser.add_argument(
|
26
40
|
"input_file",
|
27
41
|
type=str,
|
talks_reducer/gui.py
CHANGED
@@ -7,6 +7,7 @@ import os
|
|
7
7
|
import subprocess
|
8
8
|
import sys
|
9
9
|
import threading
|
10
|
+
from importlib.metadata import version
|
10
11
|
from pathlib import Path
|
11
12
|
from typing import TYPE_CHECKING, Callable, Iterable, List, Optional, Sequence
|
12
13
|
|
@@ -216,11 +217,18 @@ class TalksReducerGUI:
|
|
216
217
|
self.root = TkinterDnD.Tk() # type: ignore[call-arg]
|
217
218
|
else:
|
218
219
|
self.root = tk.Tk()
|
219
|
-
|
220
|
+
|
221
|
+
# Set window title with version
|
222
|
+
try:
|
223
|
+
app_version = version("talks-reducer")
|
224
|
+
self.root.title(f"Talks Reducer v{app_version}")
|
225
|
+
except Exception:
|
226
|
+
self.root.title("Talks Reducer")
|
227
|
+
|
220
228
|
self._apply_window_icon()
|
221
229
|
|
222
230
|
self._full_size = (760, 680)
|
223
|
-
self._simple_size = (
|
231
|
+
self._simple_size = (255, 300)
|
224
232
|
self.root.geometry(f"{self._full_size[0]}x{self._full_size[1]}")
|
225
233
|
self.style = self.ttk.Style(self.root)
|
226
234
|
|
@@ -2,15 +2,15 @@ talks_reducer/__init__.py,sha256=lb50C4_o_SLERyMyVpQfgHnXf49FJOIF9j05MZ8KAvM,158
|
|
2
2
|
talks_reducer/__main__.py,sha256=azR_vh8HFPLaOnh-L6gUFWsL67I6iHtbeH5rQhsipGY,299
|
3
3
|
talks_reducer/audio.py,sha256=we6-lyVjCJSFDEFUTPhtpiUmT2MZdPMpBrYN2ED_T9E,4440
|
4
4
|
talks_reducer/chunks.py,sha256=IpdZxRFPURSG5wP-OQ_p09CVP8wcKwIFysV29zOTSWI,2959
|
5
|
-
talks_reducer/cli.py,sha256=
|
5
|
+
talks_reducer/cli.py,sha256=ZQcay6NF32g0PF7OGLKWPY1TbIR1Hx2xaRlzOXK1lto,6508
|
6
6
|
talks_reducer/ffmpeg.py,sha256=GzHD1gnC7D3mgQJYZhz0waudDs2x-biI4x7ThrFMP50,11318
|
7
|
-
talks_reducer/gui.py,sha256=
|
7
|
+
talks_reducer/gui.py,sha256=EVGpQBBu4qz5KgkxIlq7RZqdiBIN_XFCs6-jssK9FGs,37011
|
8
8
|
talks_reducer/models.py,sha256=6cZRcJf0EBZIzNd-PWrh4Wdsoa4EBj5nSdB6BnFiOXM,1106
|
9
9
|
talks_reducer/pipeline.py,sha256=zcrN8VaWXPc1InY_mXX4yDrQ9goST3G5uBYKkEfJQu4,8623
|
10
10
|
talks_reducer/progress.py,sha256=Mh43M6VWhjjUv9CI22xfD2EJ_7Aq3PCueqefQ9Bd5-o,4565
|
11
|
-
talks_reducer-0.2.
|
12
|
-
talks_reducer-0.2.
|
13
|
-
talks_reducer-0.2.
|
14
|
-
talks_reducer-0.2.
|
15
|
-
talks_reducer-0.2.
|
16
|
-
talks_reducer-0.2.
|
11
|
+
talks_reducer-0.2.24.dist-info/licenses/LICENSE,sha256=jN17mHNR3e84awmH3AbpWBcBDBzPxEH0rcOFoj1s7sQ,1124
|
12
|
+
talks_reducer-0.2.24.dist-info/METADATA,sha256=nmQZPt5hx6jEWH44zxgG_qMMekyfiUYwJoOdXSOw-us,7313
|
13
|
+
talks_reducer-0.2.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
14
|
+
talks_reducer-0.2.24.dist-info/entry_points.txt,sha256=LCzfSnh_7VXhvl9twoFSAj0C3sG7bayWs2LkxpH7hoI,100
|
15
|
+
talks_reducer-0.2.24.dist-info/top_level.txt,sha256=pJWGcy__LR9JIEKH3QJyFmk9XrIsiFtqvuMNxFdIzDU,14
|
16
|
+
talks_reducer-0.2.24.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|