from __future__ import unicode_literals from .common import InfoExtractor class koreusIE(InfoExtractor): _VALID_URL = r'https:\/\/www\.koreus\.com/video/(?P\S+)' _TESTS = [{ 'url': 'https://www.koreus.com/video/pub-mazda-drague.html', 'info_dict': { 'id': 'pub-mazda-drague', 'ext': 'mp4', 'title': 'Pub Mazda (Drague)', } }] def _real_extract(self, url): video_id = self._match_id(url) webpage = self._download_webpage( url, video_id ) title = self._html_search_regex(r'(.+?)', webpage, 'title') download_url = self._html_search_regex( r'