diff options
author | Vladimir Stavrinov <[email protected]> | 2022-02-14 20:54:31 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2022-02-14 17:54:31 +0000 |
commit | 34722270741fb9c06f978861c1e5f503291070d8 (patch) | |
tree | 4766a4ac47ffe0a1798789804140a205b28e9058 | |
parent | bf23bc0489cf304b2a8ab756f2f63b2cfa5586fe (diff) | |
download | youtube-dl-34722270741fb9c06f978861c1e5f503291070d8.tar.gz youtube-dl-34722270741fb9c06f978861c1e5f503291070d8.zip |
[rutv] fix vbr for empty string value (#30623)
* [rutv] use str_to_int() (thx dirkf)
-rw-r--r-- | youtube_dl/extractor/rutv.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/rutv.py b/youtube_dl/extractor/rutv.py index d2713c19a..05f319396 100644 --- a/youtube_dl/extractor/rutv.py +++ b/youtube_dl/extractor/rutv.py @@ -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': |