@jakende/media-info-cli 0.1.1 → 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.
|
@@ -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
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"
|