aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/chilloutzone.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/chilloutzone.py
parent66c9fa36c10860b380806b9de48f38d628289e03 (diff)
[abcnews,chilloutsoze,cracked,vice,vk] Use dedicated YouTube embeds extraction routines
Diffstat (limited to 'youtube_dl/extractor/chilloutzone.py')
-rw-r--r--youtube_dl/extractor/chilloutzone.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/youtube_dl/extractor/chilloutzone.py b/youtube_dl/extractor/chilloutzone.py
index 0206d96db..d4769da75 100644
--- a/youtube_dl/extractor/chilloutzone.py
+++ b/youtube_dl/extractor/chilloutzone.py
@@ -5,6 +5,7 @@ import base64
import json
from .common import InfoExtractor
+from .youtube import YoutubeIE
from ..utils import (
clean_html,
ExtractorError
@@ -70,11 +71,9 @@ class ChilloutzoneIE(InfoExtractor):
# If nativePlatform is None a fallback mechanism is used (i.e. youtube embed)
if native_platform is None:
- youtube_url = self._html_search_regex(
- r'<iframe.* src="((?:https?:)?//(?:[^.]+\.)?youtube\.com/.+?)"',
- webpage, 'fallback video URL', default=None)
- if youtube_url is not None:
- return self.url_result(youtube_url, ie='Youtube')
+ youtube_url = YoutubeIE._extract_url(webpage)
+ if youtube_url:
+ return self.url_result(youtube_url, ie=YoutubeIE.ie_key())
# Non Fallback: Decide to use native source (e.g. youtube or vimeo) or
# the own CDN