diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-05-14 06:29:16 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-05-14 06:29:16 +0700 |
commit | 5d29af3d15eaec8958a4fad00103e18112f0c172 (patch) | |
tree | ef495198a05f72fa3c59869be59748bdda94a53d /youtube_dl/extractor/mediaset.py | |
parent | ca04de463d17cc8bf53dafb19eb25e6dff8bd239 (diff) |
[extractor/generic] Add support for mediaset embeds
Diffstat (limited to 'youtube_dl/extractor/mediaset.py')
-rw-r--r-- | youtube_dl/extractor/mediaset.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dl/extractor/mediaset.py b/youtube_dl/extractor/mediaset.py index 3ebc7f2e1..9a0e41663 100644 --- a/youtube_dl/extractor/mediaset.py +++ b/youtube_dl/extractor/mediaset.py @@ -59,6 +59,14 @@ class MediasetIE(InfoExtractor): 'only_matching': True, }] + @staticmethod + def _extract_urls(webpage): + return [ + mobj.group('url') + for mobj in re.finditer( + r'<iframe\b[^>]+\bsrc=(["\'])(?P<url>https?://(?:www\.)?video\.mediaset\.it/player/playerIFrame(?:Twitter)?\.shtml\?.*?\bid=\d+.*?)\1', + webpage)] + def _real_extract(self, url): video_id = self._match_id(url) |