aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vice.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/vice.py
parent66c9fa36c10860b380806b9de48f38d628289e03 (diff)
[abcnews,chilloutsoze,cracked,vice,vk] Use dedicated YouTube embeds extraction routines
Diffstat (limited to 'youtube_dl/extractor/vice.py')
-rw-r--r--youtube_dl/extractor/vice.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/youtube_dl/extractor/vice.py b/youtube_dl/extractor/vice.py
index 54e207b39..b8b8bf979 100644
--- a/youtube_dl/extractor/vice.py
+++ b/youtube_dl/extractor/vice.py
@@ -7,6 +7,7 @@ import hashlib
import json
from .adobepass import AdobePassIE
+from .youtube import YoutubeIE
from .common import InfoExtractor
from ..compat import compat_HTTPError
from ..utils import (
@@ -261,11 +262,9 @@ class ViceArticleIE(InfoExtractor):
if embed_code:
return _url_res('ooyala:%s' % embed_code, 'Ooyala')
- youtube_url = self._html_search_regex(
- r'<iframe[^>]+src="(.*youtube\.com/.*)"',
- body, 'YouTube URL', default=None)
+ youtube_url = YoutubeIE._extract_url(body)
if youtube_url:
- return _url_res(youtube_url, 'Youtube')
+ return _url_res(youtube_url, YoutubeIE.ie_key())
video_url = self._html_search_regex(
r'data-video-url="([^"]+)"',