diff options
author | remitamine <remitamine@gmail.com> | 2015-12-05 20:58:44 +0100 |
---|---|---|
committer | remitamine <remitamine@gmail.com> | 2015-12-05 20:58:44 +0100 |
commit | 0017486dcab67583db7896a9d754b195bcee3bad (patch) | |
tree | fef44a7c9daae02b958ca7a1546d3f3a45c2f0c0 /youtube_dl/extractor | |
parent | edc70f4aaf08009c95cb5e91878461cc7b508f68 (diff) |
[nba] use int instead of int_or_none
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/nba.py | 6 |
1 files 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) |