From 1ef3ee7500c4ab8c26f7fdc5b0ad1da4d16eec8e Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Mon, 20 Jan 2025 23:13:24 +0800 Subject: [PATCH] [ie/nest] Add extractors (#11747) Authored by: pabs3, seproDev Co-authored-by: sepro --- yt_dlp/extractor/_extractors.py | 4 ++ yt_dlp/extractor/nest.py | 117 ++++++++++++++++++++++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 yt_dlp/extractor/nest.py diff --git a/yt_dlp/extractor/_extractors.py b/yt_dlp/extractor/_extractors.py index 48caf4fb2f..a345f8279b 100644 --- a/yt_dlp/extractor/_extractors.py +++ b/yt_dlp/extractor/_extractors.py @@ -1283,6 +1283,10 @@ ) from .nekohacker import NekoHackerIE from .nerdcubed import NerdCubedFeedIE +from .nest import ( + NestClipIE, + NestIE, +) from .neteasemusic import ( NetEaseMusicAlbumIE, NetEaseMusicDjRadioIE, diff --git a/yt_dlp/extractor/nest.py b/yt_dlp/extractor/nest.py new file mode 100644 index 0000000000..3f8316b3e5 --- /dev/null +++ b/yt_dlp/extractor/nest.py @@ -0,0 +1,117 @@ +from .common import InfoExtractor +from ..utils import ExtractorError, float_or_none, update_url_query, url_or_none +from ..utils.traversal import traverse_obj + + +class NestIE(InfoExtractor): + _VALID_URL = r'https?://video\.nest\.com/(?:embedded/)?live/(?P\w+)' + _EMBED_REGEX = [rf'