[rutv] fix vbr for empty string value (#30623)

* [rutv] use str_to_int() (thx dirkf)
pull/31560/head^2
Vladimir Stavrinov 2022-02-14 20:54:31 +03:00 committed by GitHub
parent bf23bc0489
commit 3472227074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,8 @@ import re
from .common import InfoExtractor
from ..utils import (
ExtractorError,
int_or_none
int_or_none,
str_to_int
)
@ -179,7 +180,7 @@ class RUTVIE(InfoExtractor):
'player_url': 'http://player.rutv.ru/flash3v/osmf.swf?i=22',
'rtmp_live': True,
'ext': 'flv',
'vbr': int(quality),
'vbr': str_to_int(quality),
'preference': preference,
}
elif transport == 'm3u8':