Skip to content

Commit 5559d78

Browse files
authored
[yt-dlp] Update to 2026.7.4 (#16044)
1 parent f064c2b commit 5559d78

12 files changed

Lines changed: 30 additions & 314 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 = "2026.3.17"
1+
version = "2026.7.4"
22
upstream-repository = "https://github.com/yt-dlp/yt-dlp"
33
dependencies = ["websockets"]

stubs/yt-dlp/yt_dlp/YoutubeDL.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ class YoutubeDL:
6060
def escape_outtmpl(outtmpl: str) -> str: ...
6161
@classmethod
6262
def validate_outtmpl(cls, outtmpl: str) -> ValueError | None: ...
63-
def prepare_outtmpl(self, outtmpl: str, info_dict: _InfoDict, sanitize: bool = False) -> tuple[str, dict[str, Any]]: ...
63+
def prepare_outtmpl(
64+
self, outtmpl: str, info_dict: _InfoDict, sanitize: bool = False, *, _exec: bool = False
65+
) -> tuple[str, dict[str, Any]]: ...
6466
def evaluate_outtmpl(self, outtmpl: str, info_dict: _InfoDict, sanitize: bool = False) -> str: ...
6567
def prepare_filename(
6668
self, info_dict: _InfoDict, dir_type: str = "", *, outtmpl: str | None = None, warn: bool = False

stubs/yt-dlp/yt_dlp/__init__.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ class _ExternalDownloader(TypedDict, total=False):
3838
ftp: str
3939
http: str
4040
m3u8: str
41-
mms: str
4241
rtmp: str
43-
rtsp: str
4442

4543
@type_check_only
4644
class _DownloadRange(TypedDict):
Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,17 @@
11
from collections.abc import Mapping
2-
from typing import Any, Literal, TypeAlias
2+
from typing import Any
33

44
from ..extractor.common import _InfoDict
55
from ..utils._utils import NO_DEFAULT
66
from .common import FileDownloader
77

88
__all__ = ["FileDownloader", "get_suitable_downloader", "shorten_protocol_name"]
99

10-
_Protocol: TypeAlias = Literal[
11-
"dash_frag_urls",
12-
"ftps",
13-
"http_dash_segments",
14-
"http_dash_segments_generator",
15-
"https",
16-
"m3u8",
17-
"m3u8_frag_urls",
18-
"m3u8_native",
19-
"rtmp_ffmpeg",
20-
"websocket_frag",
21-
]
22-
2310
def get_suitable_downloader(
2411
info_dict: _InfoDict,
2512
params: Mapping[str, Any] = {},
2613
default: FileDownloader | type[NO_DEFAULT] = ...,
27-
protocol: _Protocol | None = None,
14+
protocol: str | None = None,
2815
to_stdout: bool = False,
2916
) -> FileDownloader: ...
30-
def shorten_protocol_name(proto: _Protocol, simplify: bool = False) -> str: ...
17+
def shorten_protocol_name(proto: str, simplify: bool = False) -> str: ...

stubs/yt-dlp/yt_dlp/downloader/external.pyi

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import enum
22
import functools
33
from _typeshed import Unused
4-
from collections.abc import Iterable, Mapping
4+
from collections.abc import Mapping
55
from typing import Any, Literal
66

77
from ..extractor.common import _InfoDict
@@ -29,6 +29,8 @@ class ExternalFD(FragmentFD):
2929

3030
class CurlFD(ExternalFD):
3131
AVAILABLE_OPT: str
32+
@classmethod
33+
def available(cls, path: str | None = None) -> str | Literal[False]: ...
3234

3335
class AxelFD(ExternalFD):
3436
AVAILABLE_OPT: str
@@ -39,9 +41,6 @@ class WgetFD(ExternalFD):
3941
class Aria2cFD(ExternalFD):
4042
AVAILABLE_OPT: str
4143
SUPPORTED_PROTOCOLS: tuple[str, ...]
42-
@staticmethod
43-
def supports_manifest(manifest: str) -> bool: ...
44-
def aria2c_rpc(self, rpc_port: int, rpc_secret: str, method: str, params: Iterable[str] = ()) -> Any: ...
4544

4645
class HttpieFD(ExternalFD):
4746
AVAILABLE_OPT: str

stubs/yt-dlp/yt_dlp/downloader/rtsp.pyi

Lines changed: 0 additions & 5 deletions
This file was deleted.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class InfoExtractor:
228228
def report_drm(self, video_id: str, partial: bool) -> None: ...
229229

230230
def report_extraction(self, id_or_name: str) -> None: ...
231-
def report_download_webpage(self, video_id: str) -> None: ...
231+
def report_download_webpage(self, video_id: str, *, note: str | None = None) -> None: ...
232232
def report_age_confirmation(self) -> None: ...
233233
def report_login(self) -> None: ...
234234
def raise_login_required(

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@ from .common import InfoExtractor
55
class RtmpIE(InfoExtractor):
66
IE_DESC: ClassVar[bool]
77

8-
class MmsIE(InfoExtractor):
9-
IE_DESC: ClassVar[bool]
10-
118
class ViewSourceIE(InfoExtractor):
129
IE_DESC: ClassVar[bool]

stubs/yt-dlp/yt_dlp/update.pyi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ __all__ = ["Updater"]
99
@dataclass
1010
class UpdateInfo:
1111
tag: str
12-
version: str | None = ...
13-
requested_version: str | None = ...
14-
commit: str | None = ...
15-
binary_name: str | None = ...
16-
checksum: str | None = ...
12+
version: str | None = None
13+
requested_version: str | None = None
14+
commit: str | None = None
15+
binary_name: str | None = None
16+
checksum: str | None = None
1717

1818
class Updater:
1919
ydl: YoutubeDL

0 commit comments

Comments
 (0)