diff options
Diffstat (limited to 'hypervideo_dl/extractor/canalplus.py')
-rw-r--r-- | hypervideo_dl/extractor/canalplus.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hypervideo_dl/extractor/canalplus.py b/hypervideo_dl/extractor/canalplus.py index 51c11cb..211ea26 100644 --- a/hypervideo_dl/extractor/canalplus.py +++ b/hypervideo_dl/extractor/canalplus.py @@ -1,7 +1,6 @@ # coding: utf-8 from __future__ import unicode_literals -import re from .common import InfoExtractor from ..utils import ( @@ -50,7 +49,7 @@ class CanalplusIE(InfoExtractor): }] 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] @@ -89,7 +88,7 @@ class CanalplusIE(InfoExtractor): # the secret extracted from ya function in http://player.canalplus.fr/common/js/canalPlayer.js 'url': format_url + '?secret=pqzerjlsmdkjfoiuerhsdlfknaes', 'format_id': format_id, - 'preference': preference(format_id), + 'quality': preference(format_id), }) self._sort_formats(formats) |