diff options
author | Sergey M․ <dstftw@gmail.com> | 2020-02-23 06:47:11 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2020-02-23 06:47:11 +0700 |
commit | fda6d237a5b664cc8a9a45562d4113c51fd0280d (patch) | |
tree | 2a42af53866b350bac7e91ea9bb2794a2c616ad7 /youtube_dl/extractor/generic.py | |
parent | 5d9f6cbc5afa033b6f1cfd2abe4327e366da2ad1 (diff) |
[wistia] Add support for multiple generic embeds (closes #8347, closes #11385)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 3c002472f..04c026984 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -2537,14 +2537,15 @@ class GenericIE(InfoExtractor): dailymail_urls, video_id, video_title, ie=DailyMailIE.ie_key()) # Look for embedded Wistia player - wistia_url = WistiaIE._extract_url(webpage) - if wistia_url: - return { - '_type': 'url_transparent', - 'url': self._proto_relative_url(wistia_url), - 'ie_key': WistiaIE.ie_key(), - 'uploader': video_uploader, - } + wistia_urls = WistiaIE._extract_urls(webpage) + if wistia_urls: + playlist = self.playlist_from_matches(wistia_urls, video_id, video_title, ie=WistiaIE.ie_key()) + for entry in playlist['entries']: + entry.update({ + '_type': 'url_transparent', + 'uploader': video_uploader, + }) + return playlist # Look for SVT player svt_url = SVTIE._extract_url(webpage) |