Добавить основную функциональность загрузки YouTube Shorts с использованием файла сессии и обработкой ошибок

This commit is contained in:
ВяткинАртём
2026-05-27 16:33:22 +03:00
parent 2d1f671d5a
commit d06bd989f3
23 changed files with 884 additions and 3 deletions
+22
View File
@@ -0,0 +1,22 @@
from os import PathLike
from pathlib import Path
from .models import SessionValidation
type PathInput = str | PathLike[str]
def download(
url: str,
session_path: PathInput,
*,
output_dir: PathInput | None = None,
) -> Path: ...
def download_short(
url: str,
session_path: PathInput,
*,
output_dir: PathInput | None = None,
) -> Path: ...
def validate_session_file(path: Path) -> SessionValidation: ...
__all__: list[str]