Enable smuggling metadata to Brightcove extractor
This commit is contained in:
parent
5e733b066a
commit
dea102dd55
6
youtube_dl/extractor/brightcove.py
Normal file → Executable file
6
youtube_dl/extractor/brightcove.py
Normal file → Executable file
@ -596,8 +596,8 @@ class BrightcoveNewIE(AdobePassIE):
|
|||||||
|
|
||||||
return entries
|
return entries
|
||||||
|
|
||||||
def _parse_brightcove_metadata(self, json_data, video_id, headers={}):
|
def _parse_brightcove_metadata(self, json_data, video_id, headers={}, smuggled_data={}):
|
||||||
title = json_data['name'].strip()
|
title = smuggled_data.get('title') or json_data['name'].strip()
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for source in json_data.get('sources', []):
|
for source in json_data.get('sources', []):
|
||||||
@ -772,4 +772,4 @@ class BrightcoveNewIE(AdobePassIE):
|
|||||||
})
|
})
|
||||||
|
|
||||||
return self._parse_brightcove_metadata(
|
return self._parse_brightcove_metadata(
|
||||||
json_data, video_id, headers=headers)
|
json_data, video_id, headers=headers, smuggled_data=smuggled_data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user