1 from .common
import InfoExtractor
4 class SlutloadIE(InfoExtractor
):
5 _VALID_URL
= r
'https?://(?:\w+\.)?slutload\.com/(?:video/[^/]+|embed_player|watch)/(?P<id>[^/]+)'
7 'url': 'http://www.slutload.com/video/virginie-baisee-en-cam/TD73btpBqSxc/',
8 'md5': '868309628ba00fd488cf516a113fd717',
12 'title': 'virginie baisee en cam',
14 'thumbnail': r
're:https?://.*?\.jpg',
18 'url': 'http://mobile.slutload.com/video/masturbation-solo/fviFLmc6kzJ/',
19 'only_matching': True,
21 'url': 'http://www.slutload.com/embed_player/TD73btpBqSxc/',
22 'only_matching': True,
24 'url': 'http://www.slutload.com/watch/TD73btpBqSxc/Virginie-Baisee-En-Cam.html',
25 'only_matching': True,
28 def _real_extract(self
, url
):
29 video_id
= self
._match
_id
(url
)
31 embed_page
= self
._download
_webpage
(
32 f
'http://www.slutload.com/embed_player/{video_id}', video_id
,
33 'Downloading embed page', fatal
=False)
37 return self
._html
_search
_regex
(
38 rf
'data-video-{what}=(["\'])(?P<url>(?:(?!\1).)+)\1',
39 embed_page
, f
'video {what}', default
=None, group
='url')
41 video_url
= extract('url')
43 title
= self
._html
_search
_regex
(
44 r
'<title>([^<]+)', embed_page
, 'title', default
=video_id
)
49 'thumbnail': extract('preview'),
53 webpage
= self
._download
_webpage
(
54 f
'http://www.slutload.com/video/_/{video_id}/', video_id
)
55 title
= self
._html
_search
_regex
(
56 r
'<h1><strong>([^<]+)</strong>', webpage
, 'title').strip()
57 info
= self
._parse
_html
5_media
_entries
(url
, webpage
, video_id
)[0]