mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-07-27 17:17:25 +02:00
Merge 777afc159f
into 28d485714f
This commit is contained in:
commit
82b64ee49e
|
@ -377,8 +377,7 @@ def _real_extract(self, url):
|
||||||
f'https://api.abema.io/v1/video/programs/{video_id}', video_id,
|
f'https://api.abema.io/v1/video/programs/{video_id}', video_id,
|
||||||
note='Checking playability',
|
note='Checking playability',
|
||||||
headers=headers)
|
headers=headers)
|
||||||
ondemand_types = traverse_obj(api_response, ('terms', ..., 'onDemandType'))
|
if not traverse_obj(api_response, ('label', 'free', {bool})):
|
||||||
if 3 not in ondemand_types:
|
|
||||||
# cannot acquire decryption key for these streams
|
# cannot acquire decryption key for these streams
|
||||||
self.report_warning('This is a premium-only stream')
|
self.report_warning('This is a premium-only stream')
|
||||||
availability = 'premium_only'
|
availability = 'premium_only'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user