From: remitamine Date: Sat, 5 Dec 2015 19:58:44 +0000 (+0100) Subject: [nba] use int instead of int_or_none X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=0017486dcab67583db7896a9d754b195bcee3bad;p=youtube-dl [nba] use int instead of int_or_none --- 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)