Skip to content

Commit

Permalink
extractor/abematv: extract more metadata and add fallback for an epis…
Browse files Browse the repository at this point in the history
…ode of a series
  • Loading branch information
Lesmiscore committed May 5, 2023
1 parent 2f501bc commit 32f2708
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions yt_dlp/extractor/abematv.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,16 @@ def _real_extract(self, url):
ondemand_types = traverse_obj(api_response, ('terms', ..., 'onDemandType'))
if 3 not in ondemand_types:
self.report_warning('This is a premium-only stream. You need a premium subscription to download')
info.update(traverse_obj(api_response, {
'series': ('series', 'title'),
'season': ('season', 'title'),
'season_number': ('season', 'sequence'),
'episode_number': ('episode', 'number'),
}))
if not title:
title = traverse_obj(api_response, ('episode', 'title'))
if not description:
description = traverse_obj(api_response, ('episode', 'content'))

m3u8_url = f'https://vod-abematv.akamaized.net/program/{video_id}/playlist.m3u8'
elif video_type == 'slots':
Expand Down

0 comments on commit 32f2708

Please sign in to comment.