@jakende/media-info-cli 0.1.0 → 0.1.2
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.
package/README.md
CHANGED
|
@@ -8,6 +8,20 @@ Terminal application for downloading media from YouTube URLs or RSS feeds, conve
|
|
|
8
8
|
- ffmpeg on PATH
|
|
9
9
|
- A terminal with ANSI escape support for the framed TUI. macOS Terminal, iTerm2, Windows Terminal, and current PowerShell terminals are supported.
|
|
10
10
|
|
|
11
|
+
macOS:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
brew install ffmpeg
|
|
15
|
+
ffmpeg -version
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Windows:
|
|
19
|
+
|
|
20
|
+
```powershell
|
|
21
|
+
winget install Gyan.FFmpeg
|
|
22
|
+
ffmpeg -version
|
|
23
|
+
```
|
|
24
|
+
|
|
11
25
|
Python dependencies are installed into the project-local `.venv` folder. Run commands from this folder so the local environment is used.
|
|
12
26
|
|
|
13
27
|
## macOS Setup
|
|
@@ -62,6 +76,7 @@ After editable install, these console commands are available inside the active e
|
|
|
62
76
|
```bash
|
|
63
77
|
media-information-download
|
|
64
78
|
media-info-download
|
|
79
|
+
media-info-cli
|
|
65
80
|
```
|
|
66
81
|
|
|
67
82
|
## npm Install
|
|
@@ -70,7 +85,7 @@ The package is also published as an npm CLI wrapper. It still requires Python 3.
|
|
|
70
85
|
|
|
71
86
|
```bash
|
|
72
87
|
npm install -g @jakende/media-info-cli
|
|
73
|
-
media-
|
|
88
|
+
media-info-cli
|
|
74
89
|
```
|
|
75
90
|
|
|
76
91
|
On first run, the npm wrapper creates a Python virtual environment in `~/.media-information-download/venv` and installs the Python dependencies there. To use a different venv location:
|
|
@@ -102,6 +117,7 @@ If the project is installed into the active environment, you can also run:
|
|
|
102
117
|
|
|
103
118
|
```bash
|
|
104
119
|
media-information-download
|
|
120
|
+
media-info-cli
|
|
105
121
|
```
|
|
106
122
|
|
|
107
123
|
The TUI lets you choose YouTube or RSS input, start downloads, watch progress messages, trigger transcription, and list or open generated files.
|
|
@@ -55,6 +55,11 @@ def get_cookies_from_browser() -> tuple[str, ...] | None:
|
|
|
55
55
|
|
|
56
56
|
def is_project_venv_active() -> bool:
|
|
57
57
|
active_prefix = Path(sys.prefix).resolve()
|
|
58
|
+
npm_venv = os.environ.get("MEDIA_INFORMATION_DOWNLOAD_VENV", "").strip()
|
|
59
|
+
if npm_venv:
|
|
60
|
+
expected_venv = Path(npm_venv).expanduser().resolve()
|
|
61
|
+
return active_prefix == expected_venv or expected_venv in active_prefix.parents
|
|
62
|
+
|
|
58
63
|
project_venv = (PROJECT_ROOT / ".venv").resolve()
|
|
59
64
|
return active_prefix == project_venv or project_venv in active_prefix.parents
|
|
60
65
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jakende/media-info-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Terminal app for downloading media from YouTube or RSS feeds, converting to MP3, and generating Whisper transcripts.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"bin": {
|
|
7
7
|
"media-information-download": "bin/media-information-download.js",
|
|
8
|
-
"media-info-download": "bin/media-information-download.js"
|
|
8
|
+
"media-info-download": "bin/media-information-download.js",
|
|
9
|
+
"media-info-cli": "bin/media-information-download.js"
|
|
9
10
|
},
|
|
10
11
|
"files": [
|
|
11
12
|
"bin/",
|
package/pyproject.toml
CHANGED
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "media-information-download"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.2"
|
|
8
8
|
description = "Terminal app for downloading media from YouTube or RSS feeds, converting to MP3, and generating Whisper transcripts."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -21,6 +21,7 @@ transcribe = [
|
|
|
21
21
|
[project.scripts]
|
|
22
22
|
media-information-download = "media_information_download.tui:main"
|
|
23
23
|
media-info-download = "media_information_download.tui:main"
|
|
24
|
+
media-info-cli = "media_information_download.tui:main"
|
|
24
25
|
|
|
25
26
|
[tool.setuptools.packages.find]
|
|
26
27
|
include = ["media_information_download*"]
|