Skip to content

Commit

Permalink
more merge cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bashonly committed Nov 11, 2023
1 parent 93edf83 commit 1a91654
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yt_dlp/extractor/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1616,12 +1616,12 @@ def _real_extract(self, url):
if not broadcast:
raise ExtractorError('Broadcast no longer exists', expected=True)
info = self._parse_broadcast_data(broadcast, broadcast_id)
if info['live_status'] == 'is_upcoming':
return info

info['title'] = broadcast.get('status') or info.get('title')
info['uploader_id'] = broadcast.get('twitter_username') or info.get('uploader_id')
info['uploader_url'] = format_field(broadcast, 'twitter_username', 'https://twitter.com/%s', default=None)
if info['live_status'] == 'is_upcoming':
return info

media_key = broadcast['media_key']
source = self._call_api(
f'live_video_stream/status/{media_key}', media_key)['source']
Expand Down

0 comments on commit 1a91654

Please sign in to comment.