Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/yt-dlp/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = "2026.7.4"
version = "2026.8.19"
upstream-repository = "https://github.com/yt-dlp/yt-dlp"
2 changes: 2 additions & 0 deletions stubs/yt-dlp/yt_dlp/extractor/common.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,8 @@ class InfoExtractor:
def _cookies_passed(self) -> bool: ...
def _mark_watched(self, *args: Any, **kwargs: Any) -> Any: ... # Not implemented here.
@staticmethod
def _generate_blockbuster_headers(*, min_headers: int = 2, max_headers: int = 8) -> dict[str, str]: ...
@staticmethod
def _generic_id(url: str) -> str: ...
def _generic_title(self, url: str = "", webpage: str = "", *, default: str | None = None) -> str | None: ...
def _extract_chapters_helper(
Expand Down
1 change: 1 addition & 0 deletions stubs/yt-dlp/yt_dlp/utils/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from ._deprecated import *
from ._legacy import *
from ._utils import *
from .traversal import *
4 changes: 4 additions & 0 deletions stubs/yt-dlp/yt_dlp/utils/_deprecated.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ def intlist_to_bytes(xs: list[int]) -> bytes: ...
def jwt_encode_hs256(payload_data: Any, key: str, headers: Mapping[str, Any] = {}) -> bytes: ... # Passed to json.dumps().
@deprecated("Use `yt_dlp.utils.make_parent_dirs` instead.")
def make_dir(path: PathLike[AnyStr], to_screen: Callable[[str], Any] | None = None) -> bool: ...
@deprecated("Do not use.")
def number_of_digits(number: int) -> int: ...
@deprecated("Use `str(uuid.uuid4())` instead.")
def random_uuidv4() -> str: ...

compiled_regex_type: type[re.Pattern[Any]]
6 changes: 6 additions & 0 deletions stubs/yt-dlp/yt_dlp/utils/_legacy.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ from http.client import HTTPResponse
from http.cookiejar import CookieJar
from subprocess import Popen
from typing import Any, AnyStr, TypeVar
from typing_extensions import deprecated

has_certifi: bool
has_websockets: bool
Expand Down Expand Up @@ -52,8 +53,13 @@ def make_HTTPS_handler(
def process_communicate_or_kill(
p: Popen[Any], *args: Any, **kwargs: Any # args/kwargs passed to Popen.__init__().
) -> tuple[AnyStr, AnyStr]: ...
@deprecated("Do not use.")
def encodeFilename(s: str, for_subprocess: Unused = False) -> bytes: ...
@deprecated("Do not use.")
def decodeFilename(b: bytes, for_subprocess: Unused = False) -> str: ...
@deprecated("Do not use.")
def decodeArgument(b: _T) -> _T: ...
@deprecated("Do not use.")
def decodeOption(optval: AnyStr) -> str: ...
@deprecated("Use `str` instead.")
def error_to_compat_str(err: Any) -> str: ... # Calls str(err).
2 changes: 0 additions & 2 deletions stubs/yt-dlp/yt_dlp/utils/_utils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,6 @@ def format_field(
func: Callable[[Any], Any] = ...,
) -> str: ...
def clean_podcast_url(url: str) -> str: ...
def random_uuidv4() -> str: ...
def make_parent_dirs(path: PathLike[AnyStr]) -> None: ...
def get_executable_path() -> str: ...
def get_user_config_dirs(package_name: str) -> Iterator[str]: ...
Expand All @@ -586,7 +585,6 @@ def jwt_decode_hs256(jwt: str) -> Any: ... # Returns json.loads() output.
def supports_terminal_sequences(stream: IO[Any]) -> bool: ...
def windows_enable_vt_mode() -> None: ...
def remove_terminal_sequences(string: str) -> str: ...
def number_of_digits(number: int) -> int: ...
def join_nonempty(*values: str, delim: str = "-", from_dict: Mapping[str, Any] | None = None) -> str: ...
def scale_thumbnails_to_max_format_width(
formats: Iterable[Mapping[str, Any]], thumbnails: Iterable[Mapping[str, Any]], url_width_re: str | Pattern[str]
Expand Down