mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 01:02:13 +01:00
[extractor/abematv] Add fallback for title and description extraction and extract more metadata (#6994)
Authored by: Lesmiscore
This commit is contained in:
parent
0c7ce146e4
commit
c449c0655d
1 changed files with 10 additions and 0 deletions
|
@ -436,6 +436,16 @@ def _real_extract(self, url):
|
||||||
if 3 not in ondemand_types:
|
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')
|
||||||
|
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'
|
m3u8_url = f'https://vod-abematv.akamaized.net/program/{video_id}/playlist.m3u8'
|
||||||
elif video_type == 'slots':
|
elif video_type == 'slots':
|
||||||
|
|
Loading…
Reference in a new issue