-# coding: utf-8
-from __future__ import unicode_literals
-
-import re
-
from .common import InfoExtractor
from ..utils import (
# ExtractorError,
}]
def _real_extract(self, url):
- site, display_id, video_id = re.match(self._VALID_URL, url).groups()
+ site, display_id, video_id = self._match_valid_url(url).groups()
site_id = self._SITE_ID_MAP[site]
# response = self._request_webpage(
# HEADRequest(fmt_url), video_id,
# 'Checking if the video is georestricted')
- # if '/blocage' in response.geturl():
+ # if '/blocage' in response.url:
# raise ExtractorError(
# 'The video is not available in your country',
# expected=True)
'format_id': format_id,
'quality': preference(format_id),
})
- self._sort_formats(formats)
thumbnails = [{
'id': image_id,