|
|
@ -197,12 +197,16 @@ class AnvatoIE(InfoExtractor):
|
|
|
|
'tbr': tbr if tbr != 0 else None,
|
|
|
|
'tbr': tbr if tbr != 0 else None,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ext == 'm3u8' or media_format in ('m3u8', 'm3u8-variant'):
|
|
|
|
if media_format == 'm3u8' and tbr is not None:
|
|
|
|
if tbr is not None:
|
|
|
|
a_format.update({
|
|
|
|
a_format.update({
|
|
|
|
'format_id': '-'.join(filter(None, ['hls', compat_str(tbr)])),
|
|
|
|
'format_id': '-'.join(filter(None, ['hls', compat_str(tbr)])),
|
|
|
|
'ext': 'mp4',
|
|
|
|
'ext': 'mp4',
|
|
|
|
})
|
|
|
|
})
|
|
|
|
elif media_format == 'm3u8-variant' or ext == 'm3u8':
|
|
|
|
|
|
|
|
formats.extend(self._extract_m3u8_formats(
|
|
|
|
|
|
|
|
video_url, video_id, 'mp4', entry_protocol='m3u8_native',
|
|
|
|
|
|
|
|
m3u8_id='hls', fatal=False))
|
|
|
|
|
|
|
|
continue
|
|
|
|
elif ext == 'mp3' or media_format == 'mp3':
|
|
|
|
elif ext == 'mp3' or media_format == 'mp3':
|
|
|
|
a_format['vcodec'] = 'none'
|
|
|
|
a_format['vcodec'] = 'none'
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|