Skip to content

Commit

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

Co-authored-by: JC-Chung <52159296+JC-Chung@users.noreply.github.com>
  • Loading branch information
saintliao and JC-Chung authored Oct 27, 2023
1 parent a40e0b3 commit 7b8b1cf
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 7b8b1cf

Please sign in to comment.