fix exception for kika. this ensures that certain videos can be downloaded.

This commit is contained in:
nicksmart24 2020-09-27 14:58:19 +02:00
parent d65d89183f
commit f7f775248d
1 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,9 @@ class MDRIE(InfoExtractor):
abr = int_or_none(xpath_text(asset, './bitrateAudio', 'abr'), 1000)
filesize = int_or_none(xpath_text(asset, './fileSize', 'file size'))
if vbr is None and abr is None:
continue
f = {
'url': video_url,
'format_id': '%s-%d' % (media_type, vbr or abr),