aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/nba.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-12-05 20:58:44 +0100
committerremitamine <remitamine@gmail.com>2015-12-05 20:58:44 +0100
commit0017486dcab67583db7896a9d754b195bcee3bad (patch)
treefef44a7c9daae02b958ca7a1546d3f3a45c2f0c0 /youtube_dl/extractor/nba.py
parentedc70f4aaf08009c95cb5e91878461cc7b508f68 (diff)
[nba] use int instead of int_or_none
Diffstat (limited to 'youtube_dl/extractor/nba.py')
-rw-r--r--youtube_dl/extractor/nba.py6
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)