mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-14 15:22:35 +00:00
[twitcasting] Don't return multi_video for archive with single hls manifest (#3319)
Authored by: Lesmiscore
This commit is contained in:
parent
da1ffde15d
commit
06b1628d3e
1 changed files with 8 additions and 0 deletions
|
@ -183,6 +183,14 @@ class TwitCastingIE(InfoExtractor):
|
||||||
infodict = {
|
infodict = {
|
||||||
'formats': formats
|
'formats': formats
|
||||||
}
|
}
|
||||||
|
elif len(m3u8_urls) == 1:
|
||||||
|
formats = self._extract_m3u8_formats(
|
||||||
|
m3u8_urls[0], video_id, 'mp4', headers=self._M3U8_HEADERS)
|
||||||
|
self._sort_formats(formats)
|
||||||
|
infodict = {
|
||||||
|
# No problem here since there's only one manifest
|
||||||
|
'formats': formats,
|
||||||
|
}
|
||||||
else:
|
else:
|
||||||
infodict = {
|
infodict = {
|
||||||
'_type': 'multi_video',
|
'_type': 'multi_video',
|
||||||
|
|
Loading…
Reference in a new issue