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-9]+)/(.*)'
11 'url': 'http://video.xnxx.com/video1135332/lida_naked_funny_actress_5_',
12 'md5': '0831677e2b4761795f68d417e0b7b445',
16 'title': 'lida » Naked Funny Actress (5)',
21 def _real_extract(self
, url
):
22 video_id
= self
._match
_id
(url
)
23 webpage
= self
._download
_webpage
(url
, video_id
)
25 video_url
= self
._search
_regex
(r
'flv_url=(.*?)&',
27 video_url
= compat_urllib_parse_unquote(video_url
)
29 video_title
= self
._html
_search
_regex
(r
'<title>(.*?)\s+-\s+XNXX.COM',
32 video_thumbnail
= self
._search
_regex
(r
'url_bigthumb=(.*?)&',
33 webpage
, 'thumbnail', fatal
=False)
40 'thumbnail': video_thumbnail
,