Don't list master m3u8 playlists in format list (closes #12832)

This commit is contained in:
Sergey M․ 2017-04-25 22:07:10 +07:00
parent e8bfe2a946
commit ff99fe529e
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D
11 changed files with 11 additions and 61 deletions

View file

@ -178,12 +178,7 @@ class AnvatoIE(InfoExtractor):
}
if ext == 'm3u8' or media_format in ('m3u8', 'm3u8-variant'):
# Not using _extract_m3u8_formats here as individual media
# playlists are also included in published_urls.
if tbr is None:
formats.append(self._m3u8_meta_format(video_url, ext='mp4', m3u8_id='hls'))
continue
else:
if tbr is not None:
a_format.update({
'format_id': '-'.join(filter(None, ['hls', compat_str(tbr)])),
'ext': 'mp4',