Publish Source Available licenses and remove Mutagen in YouTubeDL 1.4.7 / helper 1.3.3
This commit is contained in:
1 parent
71a808b298
commit
50457bc35b
27 files changed
+201
-58
No files matched your search
@@ -64,6 +64,7 @@ def install(key, progress, workspace=None):
|
||||
raise ValueError("Нажмите «Обновить компоненты» для установки новых версий из интернета или «Восстановить» для переустановки встроенного комплекта.")
|
||||
if key not in {"node", "ffmpeg", "yt_dlp", "ejs"}:
|
||||
raise ValueError("Неизвестный компонент.")
|
||||
from host.python_packages import requirements
|
||||
runtime = ROOT / ".runtime"
|
||||
runtime.mkdir(exist_ok=True)
|
||||
cfg = config()
|
||||
@@ -73,8 +74,8 @@ def install(key, progress, workspace=None):
|
||||
workspace(str(scratch))
|
||||
if key in {"yt_dlp", "ejs"}:
|
||||
progress(None, "Устанавливаю Python-пакет")
|
||||
package = "yt-dlp[default]>=2026.8.19" if key == "yt_dlp" else "yt-dlp-ejs"
|
||||
measured = subprocess.run([sys.executable, "-m", "pip", "install", "--disable-pip-version-check", "--upgrade", package],
|
||||
packages = requirements() if key == "yt_dlp" else ["yt-dlp-ejs"]
|
||||
measured = subprocess.run([sys.executable, "-m", "pip", "install", "--disable-pip-version-check", "--upgrade", *packages],
|
||||
stdin=subprocess.DEVNULL, capture_output=True, text=True, encoding="utf-8", errors="replace", creationflags=NO_WINDOW, timeout=600)
|
||||
if measured.returncode:
|
||||
raise ValueError("Не удалось установить компонент. " + measured.stderr[-1200:])
|
||||
|
||||
Reference in new issue
Block a user