]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/cinemax.py
2 from __future__
import unicode_literals
6 from .hbo
import HBOBaseIE
9 class CinemaxIE(HBOBaseIE
):
10 _VALID_URL
= r
'https?://(?:www\.)?cinemax\.com/(?P<path>[^/]+/video/[0-9a-z-]+-(?P<id>\d+))'
12 'url': 'https://www.cinemax.com/warrior/video/s1-ep-1-recap-20126903',
13 'md5': '82e0734bba8aa7ef526c9dd00cf35a05',
17 'title': 'S1 Ep 1: Recap',
19 'expected_warnings': ['Unknown MIME type application/mp4 in DASH manifest'],
21 'url': 'https://www.cinemax.com/warrior/video/s1-ep-1-recap-20126903.embed',
22 'only_matching': True,
25 def _real_extract(self
, url
):
26 path
, video_id
= re
.match(self
._VALID
_URL
, url
).groups()
27 info
= self
._extract
_info
('https://www.cinemax.com/%s.xml' % path
, video_id
)