|
|
@ -77,13 +77,8 @@ class NJPWWorldIE(InfoExtractor):
|
|
|
|
for kind, vid in re.findall(r'if\s+\(\s*imageQualityType\s*==\s*\'([^\']+)\'\s*\)\s*{\s*video_id\s*=\s*"(\d+)"', webpage):
|
|
|
|
for kind, vid in re.findall(r'if\s+\(\s*imageQualityType\s*==\s*\'([^\']+)\'\s*\)\s*{\s*video_id\s*=\s*"(\d+)"', webpage):
|
|
|
|
player_path = '/intent?id=%s&type=url' % vid
|
|
|
|
player_path = '/intent?id=%s&type=url' % vid
|
|
|
|
player_url = compat_urlparse.urljoin(url, player_path)
|
|
|
|
player_url = compat_urlparse.urljoin(url, player_path)
|
|
|
|
formats.append({
|
|
|
|
formats += self._extract_m3u8_formats(
|
|
|
|
'url': player_url,
|
|
|
|
player_url, video_id, 'mp4', 'm3u8_native', m3u8_id=kind, fatal=False, quality=int(kind == 'high'))
|
|
|
|
'format_id': kind,
|
|
|
|
|
|
|
|
'ext': 'mp4',
|
|
|
|
|
|
|
|
'protocol': 'm3u8',
|
|
|
|
|
|
|
|
'quality': 2 if kind == 'high' else 1,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self._sort_formats(formats)
|
|
|
|
self._sort_formats(formats)
|
|
|
|
|
|
|
|
|
|
|
|