diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-06-20 23:51:14 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-06-20 23:53:37 +0700 |
commit | f51f526b0acb5943332452d1958581cb1135bfe9 (patch) | |
tree | 85e50283e2e22f21d43b9f882aad5c886bd8e913 /youtube_dl/extractor/generic.py | |
parent | c9b983ff827aae25a0fe2116c98c26702c581b81 (diff) |
[foxnews] Add support for iframe embeds (closes #15810, closes #16711)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 6c0f772ac..d71cb9050 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -111,6 +111,7 @@ from .cloudflarestream import CloudflareStreamIE from .peertube import PeerTubeIE from .indavideo import IndavideoEmbedIE from .apa import APAIE +from .foxnews import FoxNewsIE class GenericIE(InfoExtractor): @@ -3091,6 +3092,11 @@ class GenericIE(InfoExtractor): return self.playlist_from_matches( apa_urls, video_id, video_title, ie=APAIE.ie_key()) + foxnews_urls = FoxNewsIE._extract_urls(webpage) + if foxnews_urls: + return self.playlist_from_matches( + foxnews_urls, video_id, video_title, ie=FoxNewsIE.ie_key()) + sharevideos_urls = [mobj.group('url') for mobj in re.finditer( r'<iframe[^>]+?\bsrc\s*=\s*(["\'])(?P<url>(?:https?:)?//embed\.share-videos\.se/auto/embed/\d+\?.*?\buid=\d+.*?)\1', webpage)] |