Skip to content

Commit

Permalink
[ie/twitcasting] Fix livestream extraction (yt-dlp#8427)
Browse files Browse the repository at this point in the history
Closes yt-dlp#8431
Authored by: JC-Chung, saintliao

Co-authored-by: JC-Chung <52159296+JC-Chung@users.noreply.github.com>
  • Loading branch information
2 people authored and aalsuwaidi committed Apr 21, 2024
1 parent edfc33b commit da81e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/extractor/twitcasting.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def _real_extract(self, url):
'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')

Expand Down

0 comments on commit da81e2d

Please sign in to comment.