-# -*- coding: utf-8 -*-
+# coding: utf-8
from __future__ import unicode_literals
import re
class MoviezineIE(InfoExtractor):
- _VALID_URL = r'https?://www\.moviezine\.se/video/(?P<id>[^?#]+)'
+ _VALID_URL = r'https?://(?:www\.)?moviezine\.se/video/(?P<id>[^?#]+)'
_TEST = {
'url': 'http://www.moviezine.se/video/205866',
webpage = self._download_webpage(url, video_id)
jsplayer = self._download_webpage('http://www.moviezine.se/api/player.js?video=%s' % video_id, video_id, 'Downloading js api player')
- formats =[{
+ formats = [{
'format_id': 'sd',
'url': self._html_search_regex(r'file: "(.+?)",', jsplayer, 'file'),
'quality': 0,