A feature-rich command-line audio/video downloader
[ie/abematv] Fix availability extraction (#10569)
middlingphysef36d517f9b0
diff --git a/yt_dlp/extractor/abematv.py b/yt_dlp/extractor/abematv.pyindex 2611c6fddc..66ab083fe0 100644--- a/yt_dlp/extractor/abematv.py+++ b/yt_dlp/extractor/abematv.py@@ -377,8 +377,7 @@ class AbemaTVIE(AbemaTVBaseIE):f'https://api.abema.io/v1/video/programs/{video_id}', video_id,note='Checking playability',headers=headers)- ondemand_types = traverse_obj(api_response, ('terms', ..., 'onDemandType'))- if 3 not in ondemand_types:+ if not traverse_obj(api_response, ('label', 'free', {bool})):# cannot acquire decryption key for these streamsself.report_warning('This is a premium-only stream')availability = 'premium_only'