aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/twitcasting.py
diff options
context:
space:
mode:
authorLesmiscore (Naoya Ozaki) <nao20010128@gmail.com>2022-04-07 13:42:01 +0900
committerGitHub <noreply@github.com>2022-04-07 13:42:01 +0900
commit06b1628d3ed446d25ddbd4030fb92d8d90431c7e (patch)
tree949c2875c58073889fd07a1edc2a8186efa03fbe /yt_dlp/extractor/twitcasting.py
parentda1ffde15de28bf0565d1bd0c02d3f17edcdfff7 (diff)
downloadhypervideo-pre-06b1628d3ed446d25ddbd4030fb92d8d90431c7e.tar.lz
hypervideo-pre-06b1628d3ed446d25ddbd4030fb92d8d90431c7e.tar.xz
hypervideo-pre-06b1628d3ed446d25ddbd4030fb92d8d90431c7e.zip
[twitcasting] Don't return multi_video for archive with single hls manifest (#3319)
Authored by: Lesmiscore
Diffstat (limited to 'yt_dlp/extractor/twitcasting.py')
-rw-r--r--yt_dlp/extractor/twitcasting.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/yt_dlp/extractor/twitcasting.py b/yt_dlp/extractor/twitcasting.py
index af911de98..7f3fa0735 100644
--- a/yt_dlp/extractor/twitcasting.py
+++ b/yt_dlp/extractor/twitcasting.py
@@ -183,6 +183,14 @@ class TwitCastingIE(InfoExtractor):
infodict = {
'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:
infodict = {
'_type': 'multi_video',