diff options
author | saintliao <saintliao@gmail.com> | 2023-10-28 07:59:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-27 23:59:13 +0000 |
commit | 7b8b1cf5eb8bf44ce70bc24e1f56f0dba2737e98 (patch) | |
tree | 6f9ed5b8da4bc9c5e14fc017dfafc925e31c886a | |
parent | a40e0b37dfc8c26916b0e01aa3f29f3bc42250b6 (diff) |
[ie/twitcasting] Fix livestream extraction (#8427)
Closes #8431
Authored by: JC-Chung, saintliao
Co-authored-by: JC-Chung <52159296+JC-Chung@users.noreply.github.com>
-rw-r--r-- | yt_dlp/extractor/twitcasting.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/twitcasting.py b/yt_dlp/extractor/twitcasting.py index 540e217fd..32a38c86e 100644 --- a/yt_dlp/extractor/twitcasting.py +++ b/yt_dlp/extractor/twitcasting.py @@ -142,7 +142,7 @@ class TwitCastingIE(InfoExtractor): 'https://twitcasting.tv/streamserver.php?target=%s&mode=client' % uploader_id, video_id, 'Downloading live info', fatal=False) - is_live = 'data-status="online"' in webpage + is_live = any(f'data-{x}' in webpage for x in ['is-onlive="true"', 'live-type="live"', 'status="online"']) if not traverse_obj(stream_server_data, 'llfmp4') and is_live: self.raise_login_required(method='cookies') |