Skip to content

Commit 310c161

Browse files
[yt-dlp] Update to 2025.8.20 (#14609)
1 parent bfd07fb commit 310c161

5 files changed

Lines changed: 26 additions & 4 deletions

File tree

stubs/yt-dlp/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version = "2025.8.11"
1+
version = "2025.8.20"
22
upstream_repository = "https://github.com/yt-dlp/yt-dlp"
33
requires = ["websockets"]

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ from ..YoutubeDL import YoutubeDL
1919
class _InfoDict(TypedDict, total=False):
2020
age_limit: int
2121
availability: Literal["private", "premium_only", "subscriber_only", "needs_auth", "unlisted", "public"] | None
22+
available_at: int
2223
creator: str | None
2324
comment_count: int | None
2425
duration: int | None

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
from ._deprecated import (
2+
bytes_to_intlist as bytes_to_intlist,
3+
compiled_regex_type as compiled_regex_type,
4+
intlist_to_bytes as intlist_to_bytes,
5+
jwt_encode_hs256 as jwt_encode_hs256,
6+
)
17
from ._utils import (
28
ACCENT_CHARS as ACCENT_CHARS,
39
BOMS as BOMS,
@@ -149,7 +155,7 @@ from ._utils import (
149155
join_nonempty as join_nonempty,
150156
js_to_json as js_to_json,
151157
jwt_decode_hs256 as jwt_decode_hs256,
152-
jwt_encode_hs256 as jwt_encode_hs256,
158+
jwt_encode as jwt_encode,
153159
limit_length as limit_length,
154160
locked_file as locked_file,
155161
long_to_bytes as long_to_bytes,
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import re
2+
from collections.abc import Mapping
3+
from typing import Any
4+
from typing_extensions import deprecated
5+
6+
@deprecated("Use `list` instead.")
7+
def bytes_to_intlist(bs: bytes) -> list[int]: ...
8+
@deprecated("Use `bytes` instead.")
9+
def intlist_to_bytes(xs: list[int]) -> bytes: ...
10+
@deprecated("Use `yt_dlp.utils.jwt_encode` instead.")
11+
def jwt_encode_hs256(payload_data: Any, key: str, headers: Mapping[str, Any] = ...) -> bytes: ... # Passed to json.dumps().
12+
13+
compiled_regex_type: type[re.Pattern[Any]]

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ from functools import cache
2323
from optparse import Values
2424
from os import PathLike
2525
from re import Pattern
26-
from typing import IO, Any, AnyStr, BinaryIO, Generic, NamedTuple, TextIO, TypeVar, overload
26+
from typing import IO, Any, AnyStr, BinaryIO, Generic, Literal, NamedTuple, TextIO, TypeVar, overload
2727
from typing_extensions import Self, TypeAlias
2828
from urllib.parse import _QueryType, _QuoteVia
2929
from xml.etree import ElementTree as ET
@@ -573,7 +573,9 @@ def get_executable_path() -> str: ...
573573
def get_user_config_dirs(package_name: str) -> Iterator[str]: ...
574574
def get_system_config_dirs(package_name: str) -> Iterator[str]: ...
575575
def time_seconds(**kwargs: float) -> int: ...
576-
def jwt_encode_hs256(payload_data: Any, key: str, headers: Mapping[str, Any] = ...) -> bytes: ... # Passed to json.dumps().
576+
def jwt_encode(
577+
payload_data: Any, key: str, *, alg: Literal["HS256"] = "HS256", headers: Mapping[str, Any] | None = None
578+
) -> str: ... # payload_data and headers are passed to json.dumps().
577579
def jwt_decode_hs256(jwt: str) -> Any: ... # Returns json.loads() output.
578580
def supports_terminal_sequences(stream: IO[Any]) -> bool: ...
579581
def windows_enable_vt_mode() -> None: ...

0 commit comments

Comments
 (0)