Use media_type as format_id, and set vbr and abr separately.

This commit is contained in:
Frank Aurich 2020-10-18 14:57:51 +02:00
parent 2dfbb6c4d7
commit 5d8a120efa
1 changed files with 2 additions and 4 deletions

View File

@ -141,14 +141,12 @@ class MDRIE(InfoExtractor):
f = {
'url': video_url,
'filesize': filesize,
'format_id': media_type,
'vbr': vbr,
'abr': abr,
'preference': 1,
}
if vbr or abr:
f.update({
'format_id': '%s-%d' % (media_type, vbr or abr)})
if vbr:
width = int_or_none(xpath_text(asset, './frameWidth', 'width'))
height = int_or_none(xpath_text(asset, './frameHeight', 'height'))