mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-14 20:38:11 -05:00
[ie/twitter:spaces] Allow extraction when not logged in (#11289)
Closes #11288 Authored by: rubyevadestaxes
This commit is contained in:
parent
3148c1822f
commit
679c68240a
1 changed files with 1 additions and 4 deletions
|
@ -934,14 +934,13 @@ class TwitterIE(TwitterBaseIE):
|
||||||
'uploader_id': 'MoniqueCamarra',
|
'uploader_id': 'MoniqueCamarra',
|
||||||
'live_status': 'was_live',
|
'live_status': 'was_live',
|
||||||
'release_timestamp': 1658417414,
|
'release_timestamp': 1658417414,
|
||||||
'description': 'md5:acce559345fd49f129c20dbcda3f1201',
|
'description': r're:Twitter Space participated by Sergej Sumlenny.+',
|
||||||
'timestamp': 1658407771,
|
'timestamp': 1658407771,
|
||||||
'release_date': '20220721',
|
'release_date': '20220721',
|
||||||
'upload_date': '20220721',
|
'upload_date': '20220721',
|
||||||
},
|
},
|
||||||
'add_ie': ['TwitterSpaces'],
|
'add_ie': ['TwitterSpaces'],
|
||||||
'params': {'skip_download': 'm3u8'},
|
'params': {'skip_download': 'm3u8'},
|
||||||
'skip': 'Requires authentication',
|
|
||||||
}, {
|
}, {
|
||||||
# URL specifies video number but --yes-playlist
|
# URL specifies video number but --yes-playlist
|
||||||
'url': 'https://twitter.com/CTVJLaidlaw/status/1600649710662213632/video/1',
|
'url': 'https://twitter.com/CTVJLaidlaw/status/1600649710662213632/video/1',
|
||||||
|
@ -1856,8 +1855,6 @@ def _build_graphql_query(self, space_id):
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
space_id = self._match_id(url)
|
space_id = self._match_id(url)
|
||||||
if not self.is_logged_in:
|
|
||||||
self.raise_login_required('Twitter Spaces require authentication')
|
|
||||||
space_data = self._call_graphql_api('HPEisOmj1epUNLCWTYhUWw/AudioSpaceById', space_id)['audioSpace']
|
space_data = self._call_graphql_api('HPEisOmj1epUNLCWTYhUWw/AudioSpaceById', space_id)['audioSpace']
|
||||||
if not space_data:
|
if not space_data:
|
||||||
raise ExtractorError('Twitter Space not found', expected=True)
|
raise ExtractorError('Twitter Space not found', expected=True)
|
||||||
|
|
Loading…
Reference in a new issue