1 from .common
import InfoExtractor
4 class GlideIE(InfoExtractor
):
5 IE_DESC
= 'Glide mobile video messages (glide.me)'
6 _VALID_URL
= r
'https?://share\.glide\.me/(?P<id>[A-Za-z0-9\-=_+]+)'
8 'url': 'http://share.glide.me/UZF8zlmuQbe4mr+7dCiQ0w==',
9 'md5': '4466372687352851af2d131cfaa8a4c7',
11 'id': 'UZF8zlmuQbe4mr+7dCiQ0w==',
13 'title': "Damon's Glide message",
14 'thumbnail': r
're:^https?://.*?\.cloudfront\.net/.*\.jpg$',
18 def _real_extract(self
, url
):
19 video_id
= self
._match
_id
(url
)
21 webpage
= self
._download
_webpage
(url
, video_id
)
23 title
= self
._generic
_title
('', webpage
)
24 video_url
= self
._proto
_relative
_url
(self
._search
_regex
(
25 r
'<source[^>]+src=(["\'])(?P
<url
>.+?
)\
1',
26 webpage, 'video URL
', default=None,
27 group='url
')) or self._og_search_video_url(webpage)
28 thumbnail = self._proto_relative_url(self._search_regex(
29 r'<img
[^
>]+id=["\']video-thumbnail["\'][^
>]+src
=(["\'])(?P<url>.+?)\1',
30 webpage, 'thumbnail url', default=None,
31 group='url')) or self._og_search_thumbnail(webpage)
37 'thumbnail': thumbnail,