]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[dplay] minimize response size
authorRemita Amine <remitamine@gmail.com>
Tue, 5 Nov 2019 13:04:50 +0000 (14:04 +0100)
committerRemita Amine <remitamine@gmail.com>
Tue, 5 Nov 2019 13:04:50 +0000 (14:04 +0100)
youtube_dl/extractor/dplay.py

index d9c3d59cd8bfc9efe5ad7d15628836b1bb66b15f..a7b9db5689c4df697f1606a343995ef3d29ee03a 100644 (file)
@@ -146,6 +146,11 @@ class DPlayIE(InfoExtractor):
         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 @@ class DPlayIE(InfoExtractor):
             '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,