diff options
| author | dirkf <fieldhouse@gmx.net> | 2023-05-05 19:25:42 +0100 |
|---|---|---|
| committer | dirkf <fieldhouse@gmx.net> | 2023-07-19 22:14:50 +0100 |
| commit | b2741f2654e6ddfebc1771b5d5fadb5fd6fe3863 (patch) | |
| tree | caf46c5f7dd2af308ba0a69797097c8cd8ce77ac /youtube_dl/extractor/clipchamp.py | |
| parent | 846522204104e3078c597fa1872465024a684ad6 (diff) | |
[InfoExtractor] Add search methods for Next/Nuxt.js from yt-dlp
* add _search_nextjs_data(), from https://github.com/yt-dlp/yt-dlp/pull/1386
thanks selfisekai
* add _search_nuxt_data(), from https://github.com/yt-dlp/yt-dlp/pull/1921,
thanks Lesmiscore, pukkandan
* add tests for the above
* also fix HTML5 type recognition and tests, from
https://github.com/yt-dlp/yt-dlp/commit/222a230871fe4fe63f35c49590379c9a77116819,
thanks Lesmiscore
* update extractors in PR using above, fix tests.
Diffstat (limited to 'youtube_dl/extractor/clipchamp.py')
| -rw-r--r-- | youtube_dl/extractor/clipchamp.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/youtube_dl/extractor/clipchamp.py b/youtube_dl/extractor/clipchamp.py index 5a732e808..3b485eaab 100644 --- a/youtube_dl/extractor/clipchamp.py +++ b/youtube_dl/extractor/clipchamp.py @@ -35,13 +35,6 @@ class ClipchampIE(InfoExtractor): _STREAM_URL_TMPL = 'https://%s.cloudflarestream.com/%s/manifest/video.%s' _STREAM_URL_QUERY = {'parentOrigin': 'https://clipchamp.com'} - def _search_nextjs_data(self, webpage, video_id, **kw): - return self._parse_json( - self._search_regex( - r'(?s)<script[^>]+id=[\'"]__NEXT_DATA__[\'"][^>]*>([^<]+)</script>', - webpage, 'next.js data', **kw), - video_id, **kw) - def _real_extract(self, url): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) |
