mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-25 02:51:51 +00:00
[dplay] minimize response size
This commit is contained in:
parent
b77c3949e8
commit
2318629b2b
1 changed files with 5 additions and 1 deletions
|
@ -146,6 +146,11 @@ def _get_disco_api_info(self, url, display_id, disco_host, realm, country):
|
|||
video = self._download_json(
|
||||
disco_base + 'content/videos/' + display_id, display_id,
|
||||
headers=headers, query={
|
||||
'fields[channel]': 'name',
|
||||
'fields[image]': 'height,src,width',
|
||||
'fields[show]': 'name',
|
||||
'fields[tag]': 'name',
|
||||
'fields[video]': 'description,episodeNumber,name,publishStart,seasonNumber,videoDuration',
|
||||
'include': 'images,primaryChannel,show,tags'
|
||||
})
|
||||
video_id = video['data']['id']
|
||||
|
@ -226,7 +231,6 @@ def _get_disco_api_info(self, url, display_id, disco_host, realm, country):
|
|||
'series': series,
|
||||
'season_number': int_or_none(info.get('seasonNumber')),
|
||||
'episode_number': int_or_none(info.get('episodeNumber')),
|
||||
'age_limit': int_or_none(info.get('minimum_age')),
|
||||
'creator': creator,
|
||||
'tags': tags,
|
||||
'thumbnails': thumbnails,
|
||||
|
|
Loading…
Reference in a new issue