[ie/vk] Extract additional potentially existing formats

And exclude custom formats that would require custom live downloaders
This commit is contained in:
sepro 2024-05-09 00:32:27 +02:00
parent 4d72297e54
commit 97c4c86043
1 changed files with 2 additions and 2 deletions

View File

@ -467,13 +467,13 @@ class VKIE(VKBaseIE):
'source_preference': 1,
'height': height,
})
elif format_id == 'hls':
elif format_id.startswith('hls') and format_id != 'hls_live_playback':
fmts, subs = self._extract_m3u8_formats_and_subtitles(
format_url, video_id, 'mp4', 'm3u8_native',
m3u8_id=format_id, fatal=False, live=is_live)
formats.extend(fmts)
self._merge_subtitles(subs, target=subtitles)
elif format_id.startswith('dash_'):
elif format_id.startswith('dash') and format_id not in ('dash_live_playback', 'dash_uni'):
fmts, subs = self._extract_mpd_formats_and_subtitles(
format_url, video_id, mpd_id=format_id, fatal=False)
formats.extend(fmts)