Skip to content

Commit 8faedcd

Browse files
authored
[yt-dlp] Update to 2026.8.19 (#16271)
1 parent e8b9e19 commit 8faedcd

6 files changed

Lines changed: 14 additions & 3 deletions

File tree

stubs/yt-dlp/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "2026.7.4"
1+
version = "2026.8.19"
22
upstream-repository = "https://github.com/yt-dlp/yt-dlp"

stubs/yt-dlp/yt_dlp/extractor/common.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,8 @@ class InfoExtractor:
909909
def _cookies_passed(self) -> bool: ...
910910
def _mark_watched(self, *args: Any, **kwargs: Any) -> Any: ... # Not implemented here.
911911
@staticmethod
912+
def _generate_blockbuster_headers(*, min_headers: int = 2, max_headers: int = 8) -> dict[str, str]: ...
913+
@staticmethod
912914
def _generic_id(url: str) -> str: ...
913915
def _generic_title(self, url: str = "", webpage: str = "", *, default: str | None = None) -> str | None: ...
914916
def _extract_chapters_helper(
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from ._deprecated import *
2+
from ._legacy import *
23
from ._utils import *
34
from .traversal import *

stubs/yt-dlp/yt_dlp/utils/_deprecated.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ def intlist_to_bytes(xs: list[int]) -> bytes: ...
1212
def jwt_encode_hs256(payload_data: Any, key: str, headers: Mapping[str, Any] = {}) -> bytes: ... # Passed to json.dumps().
1313
@deprecated("Use `yt_dlp.utils.make_parent_dirs` instead.")
1414
def make_dir(path: PathLike[AnyStr], to_screen: Callable[[str], Any] | None = None) -> bool: ...
15+
@deprecated("Do not use.")
16+
def number_of_digits(number: int) -> int: ...
17+
@deprecated("Use `str(uuid.uuid4())` instead.")
18+
def random_uuidv4() -> str: ...
1519

1620
compiled_regex_type: type[re.Pattern[Any]]

stubs/yt-dlp/yt_dlp/utils/_legacy.pyi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ from http.client import HTTPResponse
66
from http.cookiejar import CookieJar
77
from subprocess import Popen
88
from typing import Any, AnyStr, TypeVar
9+
from typing_extensions import deprecated
910

1011
has_certifi: bool
1112
has_websockets: bool
@@ -52,8 +53,13 @@ def make_HTTPS_handler(
5253
def process_communicate_or_kill(
5354
p: Popen[Any], *args: Any, **kwargs: Any # args/kwargs passed to Popen.__init__().
5455
) -> tuple[AnyStr, AnyStr]: ...
56+
@deprecated("Do not use.")
5557
def encodeFilename(s: str, for_subprocess: Unused = False) -> bytes: ...
58+
@deprecated("Do not use.")
5659
def decodeFilename(b: bytes, for_subprocess: Unused = False) -> str: ...
60+
@deprecated("Do not use.")
5761
def decodeArgument(b: _T) -> _T: ...
62+
@deprecated("Do not use.")
5863
def decodeOption(optval: AnyStr) -> str: ...
64+
@deprecated("Use `str` instead.")
5965
def error_to_compat_str(err: Any) -> str: ... # Calls str(err).

stubs/yt-dlp/yt_dlp/utils/_utils.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,6 @@ def format_field(
573573
func: Callable[[Any], Any] = ...,
574574
) -> str: ...
575575
def clean_podcast_url(url: str) -> str: ...
576-
def random_uuidv4() -> str: ...
577576
def make_parent_dirs(path: PathLike[AnyStr]) -> None: ...
578577
def get_executable_path() -> str: ...
579578
def get_user_config_dirs(package_name: str) -> Iterator[str]: ...
@@ -586,7 +585,6 @@ def jwt_decode_hs256(jwt: str) -> Any: ... # Returns json.loads() output.
586585
def supports_terminal_sequences(stream: IO[Any]) -> bool: ...
587586
def windows_enable_vt_mode() -> None: ...
588587
def remove_terminal_sequences(string: str) -> str: ...
589-
def number_of_digits(number: int) -> int: ...
590588
def join_nonempty(*values: str, delim: str = "-", from_dict: Mapping[str, Any] | None = None) -> str: ...
591589
def scale_thumbnails_to_max_format_width(
592590
formats: Iterable[Mapping[str, Any]], thumbnails: Iterable[Mapping[str, Any]], url_width_re: str | Pattern[str]

0 commit comments

Comments
 (0)