2 from __future__ import unicode_literals
4 from .common import InfoExtractor
5 from ..compat import compat_urllib_parse_unquote
8 class XNXXIE(InfoExtractor):
9 _VALID_URL = r'^https?://(?:video|www)\.xnxx\.com/video-?(?P<id>[0-9a-z]+)/(.*)'
11 'url': 'http://www.xnxx.com/video-55awb78/skyrim_test_video',
12 'md5': 'ef7ecee5af78f8b03dca2cf31341d3a0',
16 'title': 'Skyrim Test Video',
20 'url': 'http://video.xnxx.com/video1135332/lida_naked_funny_actress_5_',
21 'only_matching': True,
24 def _real_extract(self, url):
25 video_id = self._match_id(url)
26 webpage = self._download_webpage(url, video_id)
28 video_url = self._search_regex(r'flv_url=(.*?)&',
30 video_url = compat_urllib_parse_unquote(video_url)
32 video_title = self._html_search_regex(r'<title>(.*?)\s+-\s+XNXX.COM',
35 video_thumbnail = self._search_regex(r'url_bigthumb=(.*?)&',
36 webpage, 'thumbnail', fatal=False)
43 'thumbnail': video_thumbnail,