From 0017486dcab67583db7896a9d754b195bcee3bad Mon Sep 17 00:00:00 2001 From: remitamine Date: Sat, 5 Dec 2015 20:58:44 +0100 Subject: [PATCH] [nba] use int instead of int_or_none --- youtube_dl/extractor/nba.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/nba.py b/youtube_dl/extractor/nba.py index 5a3eb0833..9f99dbf36 100644 --- a/youtube_dl/extractor/nba.py +++ b/youtube_dl/extractor/nba.py @@ -84,9 +84,9 @@ class NBAIE(InfoExtractor): mobj = re.search(r'(\d+)x(\d+)(?:_(\d+))?', key) if mobj: format_info.update({ - 'width': int_or_none(mobj.group(1)), - 'height': int_or_none(mobj.group(2)), - 'tbr': int_or_none(mobj.group(3)), + 'width': int(mobj.group(1)), + 'height': int(mobj.group(2)), + 'tbr': int(mobj.group(3)), }) formats.append(format_info) self._sort_formats(formats)