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,3 +1,3 @@
version = "2026.3.17"
version = "2026.7.4"
upstream-repository = "https://github.com/yt-dlp/yt-dlp"
dependencies = ["websockets"]
4 changes: 3 additions & 1 deletion stubs/yt-dlp/yt_dlp/YoutubeDL.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ class YoutubeDL:
def escape_outtmpl(outtmpl: str) -> str: ...
@classmethod
def validate_outtmpl(cls, outtmpl: str) -> ValueError | None: ...
def prepare_outtmpl(self, outtmpl: str, info_dict: _InfoDict, sanitize: bool = False) -> tuple[str, dict[str, Any]]: ...
def prepare_outtmpl(
self, outtmpl: str, info_dict: _InfoDict, sanitize: bool = False, *, _exec: bool = False
) -> tuple[str, dict[str, Any]]: ...
def evaluate_outtmpl(self, outtmpl: str, info_dict: _InfoDict, sanitize: bool = False) -> str: ...
def prepare_filename(
self, info_dict: _InfoDict, dir_type: str = "", *, outtmpl: str | None = None, warn: bool = False
Expand Down
2 changes: 0 additions & 2 deletions stubs/yt-dlp/yt_dlp/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ class _ExternalDownloader(TypedDict, total=False):
ftp: str
http: str
m3u8: str
mms: str
rtmp: str
rtsp: str

@type_check_only
class _DownloadRange(TypedDict):
Expand Down
19 changes: 3 additions & 16 deletions stubs/yt-dlp/yt_dlp/downloader/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,30 +1,17 @@
from collections.abc import Mapping
from typing import Any, Literal, TypeAlias
from typing import Any

from ..extractor.common import _InfoDict
from ..utils._utils import NO_DEFAULT
from .common import FileDownloader

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

_Protocol: TypeAlias = Literal[
"dash_frag_urls",
"ftps",
"http_dash_segments",
"http_dash_segments_generator",
"https",
"m3u8",
"m3u8_frag_urls",
"m3u8_native",
"rtmp_ffmpeg",
"websocket_frag",
]

def get_suitable_downloader(
info_dict: _InfoDict,
params: Mapping[str, Any] = {},
default: FileDownloader | type[NO_DEFAULT] = ...,
protocol: _Protocol | None = None,
protocol: str | None = None,
to_stdout: bool = False,
) -> FileDownloader: ...
def shorten_protocol_name(proto: _Protocol, simplify: bool = False) -> str: ...
def shorten_protocol_name(proto: str, simplify: bool = False) -> str: ...
7 changes: 3 additions & 4 deletions stubs/yt-dlp/yt_dlp/downloader/external.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import enum
import functools
from _typeshed import Unused
from collections.abc import Iterable, Mapping
from collections.abc import Mapping
from typing import Any, Literal

from ..extractor.common import _InfoDict
Expand Down Expand Up @@ -29,6 +29,8 @@ class ExternalFD(FragmentFD):

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

class AxelFD(ExternalFD):
AVAILABLE_OPT: str
Expand All @@ -39,9 +41,6 @@ class WgetFD(ExternalFD):
class Aria2cFD(ExternalFD):
AVAILABLE_OPT: str
SUPPORTED_PROTOCOLS: tuple[str, ...]
@staticmethod
def supports_manifest(manifest: str) -> bool: ...
def aria2c_rpc(self, rpc_port: int, rpc_secret: str, method: str, params: Iterable[str] = ()) -> Any: ...

class HttpieFD(ExternalFD):
AVAILABLE_OPT: str
Expand Down
5 changes: 0 additions & 5 deletions stubs/yt-dlp/yt_dlp/downloader/rtsp.pyi

This file was deleted.

2 changes: 1 addition & 1 deletion stubs/yt-dlp/yt_dlp/extractor/common.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class InfoExtractor:
def report_drm(self, video_id: str, partial: bool) -> None: ...

def report_extraction(self, id_or_name: str) -> None: ...
def report_download_webpage(self, video_id: str) -> None: ...
def report_download_webpage(self, video_id: str, *, note: str | None = None) -> None: ...
def report_age_confirmation(self) -> None: ...
def report_login(self) -> None: ...
def raise_login_required(
Expand Down
3 changes: 0 additions & 3 deletions stubs/yt-dlp/yt_dlp/extractor/commonprotocols.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@ from .common import InfoExtractor
class RtmpIE(InfoExtractor):
IE_DESC: ClassVar[bool]

class MmsIE(InfoExtractor):
IE_DESC: ClassVar[bool]

class ViewSourceIE(InfoExtractor):
IE_DESC: ClassVar[bool]
10 changes: 5 additions & 5 deletions stubs/yt-dlp/yt_dlp/update.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ __all__ = ["Updater"]
@dataclass
class UpdateInfo:
tag: str
version: str | None = ...
requested_version: str | None = ...
commit: str | None = ...
binary_name: str | None = ...
checksum: str | None = ...
version: str | None = None
requested_version: str | None = None
commit: str | None = None
binary_name: str | None = None
checksum: str | None = None

class Updater:
ydl: YoutubeDL
Expand Down
Loading
Loading