]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/slutload.py
ecc0abfdacf4353035d27f5c451f35341837c70e
1 from __future__
import unicode_literals
5 from .common
import InfoExtractor
11 class SlutloadIE(InfoExtractor
):
12 _VALID_URL
= r
'^https?://(?:\w+\.)?slutload\.com/video/[^/]+/(?P<id>[^/]+)/?$'
14 'url': 'http://www.slutload.com/video/virginie-baisee-en-cam/TD73btpBqSxc/',
15 'md5': '0cf531ae8006b530bd9df947a6a0df77',
19 "title": "virginie baisee en cam",
21 'thumbnail': 're:https?://.*?\.jpg'
25 def _real_extract(self
, url
):
26 mobj
= re
.match(self
._VALID
_URL
, url
)
27 video_id
= mobj
.group('id')
29 webpage
= self
._download
_webpage
(url
, video_id
)
31 video_title
= self
._html
_search
_regex
(r
'<h1><strong>([^<]+)</strong>',
32 webpage
, 'title').strip()
34 video_url
= self
._html
_search
_regex
(
35 r
'(?s)<div id="vidPlayer"\s+data-url="([^"]+)"',
37 thumbnail
= self
._html
_search
_regex
(
38 r
'(?s)<div id="vidPlayer"\s+.*?previewer-file="([^"]+)"',
39 webpage
, 'thumbnail', fatal
=False)
45 'thumbnail': thumbnail
,