[extractor/rai] Minor fix (#4700)

Closes #4691, #4690
This commit is contained in:
nixxo 2022-08-18 22:58:59 +02:00 committed by GitHub
parent 7d3b98be4c
commit 4d37d4a77c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,7 @@ def get_format_info(tbr):
br = int_or_none(tbr) br = int_or_none(tbr)
if len(fmts) == 1 and not br: if len(fmts) == 1 and not br:
br = fmts[0].get('tbr') br = fmts[0].get('tbr')
if br or 0 > 300: if br and br > 300:
tbr = compat_str(math.floor(br / 100) * 100) tbr = compat_str(math.floor(br / 100) * 100)
else: else:
tbr = '250' tbr = '250'