1 from .common
import InfoExtractor
4 class MoviezineIE(InfoExtractor
):
5 _VALID_URL
= r
'https?://(?:www\.)?moviezine\.se/video/(?P<id>[^?#]+)'
8 'url': 'http://www.moviezine.se/video/205866',
12 'title': 'Oculus - Trailer 1',
13 'description': 'md5:40cc6790fc81d931850ca9249b40e8a4',
14 'thumbnail': r
're:http://.*\.jpg',
18 def _real_extract(self
, url
):
19 mobj
= self
._match
_valid
_url
(url
)
20 video_id
= mobj
.group('id')
22 webpage
= self
._download
_webpage
(url
, video_id
)
23 jsplayer
= self
._download
_webpage
('http://www.moviezine.se/api/player.js?video=%s' % video_id
, video_id
, 'Downloading js api player')
27 'url': self
._html
_search
_regex
(r
'file: "(.+?)",', jsplayer
, 'file'),
34 'title': self
._search
_regex
(r
'title: "(.+?)",', jsplayer
, 'title'),
35 'thumbnail': self
._search
_regex
(r
'image: "(.+?)",', jsplayer
, 'image'),
37 'description': self
._og
_search
_description
(webpage
),