mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-17 05:43:21 +00:00
[brightcove] Don't set the extension
If the video only has the 'FLVFullLengthURL' key, it can still be an mp4 file.
This commit is contained in:
parent
98d7efb537
commit
f52f01b5d2
|
@ -23,7 +23,7 @@ class BrightcoveIE(InfoExtractor):
|
||||||
# From http://www.8tv.cat/8aldia/videos/xavier-sala-i-martin-aquesta-tarda-a-8-al-dia/
|
# From http://www.8tv.cat/8aldia/videos/xavier-sala-i-martin-aquesta-tarda-a-8-al-dia/
|
||||||
u'url': u'http://c.brightcove.com/services/viewer/htmlFederated?playerID=1654948606001&flashID=myExperience&%40videoPlayer=2371591881001',
|
u'url': u'http://c.brightcove.com/services/viewer/htmlFederated?playerID=1654948606001&flashID=myExperience&%40videoPlayer=2371591881001',
|
||||||
u'file': u'2371591881001.mp4',
|
u'file': u'2371591881001.mp4',
|
||||||
u'md5': u'9e80619e0a94663f0bdc849b4566af19',
|
u'md5': u'8eccab865181d29ec2958f32a6a754f5',
|
||||||
u'note': u'Test Brightcove downloads and detection in GenericIE',
|
u'note': u'Test Brightcove downloads and detection in GenericIE',
|
||||||
u'info_dict': {
|
u'info_dict': {
|
||||||
u'title': u'Xavier Sala i Martín: “Un banc que no presta és un banc zombi que no serveix per a res”',
|
u'title': u'Xavier Sala i Martín: “Un banc que no presta és un banc zombi que no serveix per a res”',
|
||||||
|
@ -122,12 +122,10 @@ def _extract_video_info(self, video_info):
|
||||||
best_format = renditions[-1]
|
best_format = renditions[-1]
|
||||||
info.update({
|
info.update({
|
||||||
'url': best_format['defaultURL'],
|
'url': best_format['defaultURL'],
|
||||||
'ext': 'mp4',
|
|
||||||
})
|
})
|
||||||
elif video_info.get('FLVFullLengthURL') is not None:
|
elif video_info.get('FLVFullLengthURL') is not None:
|
||||||
info.update({
|
info.update({
|
||||||
'url': video_info['FLVFullLengthURL'],
|
'url': video_info['FLVFullLengthURL'],
|
||||||
'ext': 'flv',
|
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
raise ExtractorError(u'Unable to extract video url for %s' % info['id'])
|
raise ExtractorError(u'Unable to extract video url for %s' % info['id'])
|
||||||
|
|
Loading…
Reference in a new issue