Добавить основную функциональность загрузки YouTube Shorts с использованием файла сессии и обработкой ошибок
This commit is contained in:
@@ -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]
|
||||
Reference in New Issue
Block a user