]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/cliphunter.py
1 from .common
import InfoExtractor
8 class CliphunterIE(InfoExtractor
):
11 _VALID_URL
= r
'''(?x)https?://(?:www\.)?cliphunter\.com/w/
13 (?P<seo>.+?)(?:$|[#\?])
16 'url': 'http://www.cliphunter.com/w/1012420/Fun_Jynx_Maze_solo',
17 'md5': 'b7c9bbd4eb3a226ab91093714dcaa480',
21 'title': 'Fun Jynx Maze solo',
22 'thumbnail': r
're:^https?://.*\.jpg$',
27 'url': 'http://www.cliphunter.com/w/2019449/ShesNew__My_booty_girlfriend_Victoria_Paradices_pussy_filled_with_jizz',
28 'md5': '55a723c67bfc6da6b0cfa00d55da8a27',
32 'title': 'ShesNew - My booty girlfriend, Victoria Paradice\'s pussy filled with jizz',
33 'thumbnail': r
're:^https?://.*\.jpg$',
38 def _real_extract(self
, url
):
39 video_id
= self
._match
_id
(url
)
40 webpage
= self
._download
_webpage
(url
, video_id
)
42 video_title
= self
._search
_regex
(
43 r
'mediaTitle = "([^"]+)"', webpage
, 'title')
45 gexo_files
= self
._parse
_json
(
47 r
'var\s+gexoFiles\s*=\s*({.+?});', webpage
, 'gexo files'),
51 for format_id
, f
in gexo_files
.items():
52 video_url
= url_or_none(f
.get('url'))
57 format_id
= '%s_%sp' % (fmt
, height
) if fmt
and height
else format_id
60 'format_id': format_id
,
61 'width': int_or_none(f
.get('w')),
62 'height': int_or_none(height
),
63 'tbr': int_or_none(f
.get('br')),
65 self
._sort
_formats
(formats
)
67 thumbnail
= self
._search
_regex
(
68 r
"var\s+mov_thumb\s*=\s*'([^']+)';",
69 webpage
, 'thumbnail', fatal
=False)
75 'age_limit': self
._rta
_search
(webpage
),
76 'thumbnail': thumbnail
,