From 51c4fec0d58af709a06bd75338b23eace412362f Mon Sep 17 00:00:00 2001 From: remitamine Date: Sat, 5 Dec 2015 21:04:22 +0100 Subject: [PATCH] [nba] use int_or_none for tbr --- youtube_dl/extractor/nba.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/nba.py b/youtube_dl/extractor/nba.py index 9f99dbf36..7c6b7841d 100644 --- a/youtube_dl/extractor/nba.py +++ b/youtube_dl/extractor/nba.py @@ -86,7 +86,7 @@ class NBAIE(InfoExtractor): format_info.update({ 'width': int(mobj.group(1)), 'height': int(mobj.group(2)), - 'tbr': int(mobj.group(3)), + 'tbr': int_or_none(mobj.group(3)), }) formats.append(format_info) self._sort_formats(formats) -- 2.22.2