aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiddlingphys <38708390+middlingphys@users.noreply.github.com>2024-07-29 14:54:59 +0900
committerGitHub <noreply@github.com>2024-07-29 05:54:59 +0000
commitef36d517f9b05785d61abca7691d9ab7d63cc75c (patch)
tree448efbd33e8d3d5bb22eeec324baf743b9d553f2
parent6daf2c27c0464fba98337be30de0b66d520d0db1 (diff)
[ie/abematv] Fix availability extraction (#10569)
Authored by: middlingphys
-rw-r--r--yt_dlp/extractor/abematv.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/extractor/abematv.py b/yt_dlp/extractor/abematv.py
index 2611c6fdd..66ab083fe 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 streams
self.report_warning('This is a premium-only stream')
availability = 'premium_only'