mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-12 14:26:49 +01:00
parent
497d77e1aa
commit
3464a2727b
@ -76,7 +76,7 @@ def _real_extract(self, url):
|
|||||||
'vrtPlayerToken': vrtPlayerToken,
|
'vrtPlayerToken': vrtPlayerToken,
|
||||||
'client': 'null',
|
'client': 'null',
|
||||||
}, expected_status=400)
|
}, expected_status=400)
|
||||||
if not data.get('title'):
|
if 'title' not in data:
|
||||||
code = data.get('code')
|
code = data.get('code')
|
||||||
if code == 'AUTHENTICATION_REQUIRED':
|
if code == 'AUTHENTICATION_REQUIRED':
|
||||||
self.raise_login_required()
|
self.raise_login_required()
|
||||||
@ -84,7 +84,8 @@ def _real_extract(self, url):
|
|||||||
self.raise_geo_restricted(countries=['BE'])
|
self.raise_geo_restricted(countries=['BE'])
|
||||||
raise ExtractorError(data.get('message') or code, expected=True)
|
raise ExtractorError(data.get('message') or code, expected=True)
|
||||||
|
|
||||||
title = data['title']
|
# Note: The title may be an empty string
|
||||||
|
title = data['title'] or f'{site_id} {video_id}'
|
||||||
description = data.get('description')
|
description = data.get('description')
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
|
Loading…
Reference in New Issue
Block a user