1 from __future__ import unicode_literals
3 from .common import InfoExtractor
10 class YourPornIE(InfoExtractor):
11 _VALID_URL = r'https?://(?:www\.)?yourporn\.sexy/post/(?P<id>[^/?#&.]+)'
13 'url': 'https://yourporn.sexy/post/57ffcb2e1179b.html',
14 'md5': '6f8682b6464033d87acaa7a8ff0c092e',
16 'id': '57ffcb2e1179b',
18 'title': 'md5:c9f43630bd968267672651ba905a7d35',
19 'thumbnail': r're:^https?://.*\.jpg$',
24 'skip_download': True,
28 def _real_extract(self, url):
29 video_id = self._match_id(url)
31 webpage = self._download_webpage(url, video_id)
33 video_url = urljoin(url, self._parse_json(
35 r'data-vnfo=(["\'])(?P<data>{.+?})\1', webpage, 'data info',
37 video_id)[video_id]).replace('/cdn/', '/cdn4/')
39 title = (self._search_regex(
40 r'<[^>]+\bclass=["\']PostEditTA[^>]+>([^<]+)', webpage, 'title',
41 default=None) or self._og_search_description(webpage)).strip()
42 thumbnail = self._og_search_thumbnail(webpage)
43 duration = parse_duration(self._search_regex(
44 r'duration\s*:\s*<[^>]+>([\d:]+)', webpage, 'duration',
51 'thumbnail': thumbnail,