about summary refs log tree commit diff
path: root/youtube_dl/extractor/abcnews.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-09-06 00:50:25 +0700
committerSergey M․ <dstftw@gmail.com>2017-09-06 00:50:25 +0700
commit5113b6912467619bd463c5ebefe759d07078bea1 (patch)
tree08a8d3c909e80d5bcd43fcf0a820a8f7aea18eec /youtube_dl/extractor/abcnews.py
parent66c9fa36c10860b380806b9de48f38d628289e03 (diff)
downloadyoutube-dl-5113b6912467619bd463c5ebefe759d07078bea1.tar.gz
youtube-dl-5113b6912467619bd463c5ebefe759d07078bea1.tar.xz
youtube-dl-5113b6912467619bd463c5ebefe759d07078bea1.zip
[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.py7
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