from .common import InfoExtractor
from ..networking.exceptions import HTTPError
from ..utils import (
- determine_ext,
ExtractorError,
+ determine_ext,
int_or_none,
unified_strdate,
)
'params': {
# m3u8 download
'skip_download': True,
- }
+ },
},
{
# empty Title
'series': 'District 31',
},
'only_matching': True,
- }
+ },
]
_GEO_COUNTRIES = ['CA']
_access_token = None
if error == 'Le contenu sélectionné est disponible seulement en premium':
self.raise_login_required(error)
raise ExtractorError(
- '%s said: %s' % (self.IE_NAME, error), expected=True)
+ f'{self.IE_NAME} said: {error}', expected=True)
formats = self._extract_m3u8_formats(v_url, video_id, 'mp4')
subtitles = {}
}]
def _real_extract(self, url):
- return self.url_result('radiocanada:medianet:%s' % self._match_id(url))
+ return self.url_result(f'radiocanada:medianet:{self._match_id(url)}')