]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/dump.py
ff78d4fd2e84c390a929f29a052b1dd87abe03d1
2 from __future__
import unicode_literals
6 from .common
import InfoExtractor
9 class DumpIE(InfoExtractor
):
10 _VALID_URL
= r
'^https?://(?:www\.)?dump\.com/(?P<id>[a-zA-Z0-9]+)/'
13 'url': 'http://www.dump.com/oneus/',
14 'md5': 'ad71704d1e67dfd9e81e3e8b42d69d99',
18 'title': "He's one of us.",
19 'thumbnail': 're:^https?://.*\.jpg$',
23 def _real_extract(self
, url
):
24 m
= re
.match(self
._VALID
_URL
, url
)
25 video_id
= m
.group('id')
27 webpage
= self
._download
_webpage
(url
, video_id
)
28 video_url
= self
._search
_regex
(
29 r
's1.addVariable\("file",\s*"([^"]+)"', webpage
, 'video URL')
31 title
= self
._og
_search
_title
(webpage
)
32 thumbnail
= self
._og
_search
_thumbnail
(webpage
)
38 'thumbnail': thumbnail
,