# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor class XruniversityIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?xruniversity\.com/(?P[^/?#]+)' _TEST = { 'url': 'http://www.xruniversity.com/bdsm-lets-begin-melissa-moore/', 'md5': 'cddc9fb8a8644a0a7742149eee95080b', 'info_dict': { 'id': 'bdsm-lets-begin-melissa-moore', 'ext': 'mp4', 'title': 'BDSM Let’s Begin with Melissa Moore', 'age_limit': 18, 'language': 'en-US', } } 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') hoster_video_id = self._html_search_regex(r'