aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/mediaset.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/mediaset.py')
-rw-r--r--youtube_dl/extractor/mediaset.py8
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)