diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-09-06 00:50:25 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-09-06 00:50:25 +0700 |
commit | 5113b6912467619bd463c5ebefe759d07078bea1 (patch) | |
tree | 08a8d3c909e80d5bcd43fcf0a820a8f7aea18eec /youtube_dl/extractor/abcnews.py | |
parent | 66c9fa36c10860b380806b9de48f38d628289e03 (diff) |
[abcnews,chilloutsoze,cracked,vice,vk] Use dedicated YouTube embeds extraction routines
Diffstat (limited to 'youtube_dl/extractor/abcnews.py')
-rw-r--r-- | youtube_dl/extractor/abcnews.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/youtube_dl/extractor/abcnews.py b/youtube_dl/extractor/abcnews.py index 74d54560c..f770fe901 100644 --- a/youtube_dl/extractor/abcnews.py +++ b/youtube_dl/extractor/abcnews.py @@ -7,6 +7,7 @@ import time from .amp import AMPIE from .common import InfoExtractor +from .youtube import YoutubeIE from ..compat import compat_urlparse @@ -108,9 +109,7 @@ class AbcNewsIE(InfoExtractor): r'window\.abcnvideo\.url\s*=\s*"([^"]+)"', webpage, 'video URL') full_video_url = compat_urlparse.urljoin(url, video_url) - youtube_url = self._html_search_regex( - r'<iframe[^>]+src="(https://www\.youtube\.com/embed/[^"]+)"', - webpage, 'YouTube URL', default=None) + youtube_url = YoutubeIE._extract_url(webpage) timestamp = None date_str = self._html_search_regex( @@ -140,7 +139,7 @@ class AbcNewsIE(InfoExtractor): } if youtube_url: - entries = [entry, self.url_result(youtube_url, 'Youtube')] + entries = [entry, self.url_result(youtube_url, ie=YoutubeIE.ie_key())] return self.playlist_result(entries) return entry |