[ie/abematv] Fix availability extraction (#10569)

Authored by: middlingphys
pull/10598/head
middlingphys 3 months ago committed by GitHub
parent 6daf2c27c0
commit ef36d517f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -377,8 +377,7 @@ class AbemaTVIE(AbemaTVBaseIE):
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…
Cancel
Save