return entries
- def _parse_brightcove_metadata(self, json_data, video_id):
+ def _parse_brightcove_metadata(self, json_data, video_id, headers={}):
title = json_data['name'].strip()
formats = []
self._sort_formats(formats)
+ for f in formats:
+ f.setdefault('http_headers', {}).update(headers)
+
subtitles = {}
for text_track in json_data.get('text_tracks', []):
if text_track.get('src'):
'tveToken': tve_token,
})
- return self._parse_brightcove_metadata(json_data, video_id)
+ return self._parse_brightcove_metadata(
+ json_data, video_id, headers=headers)