[nba] use int instead of int_or_none
authorremitamine <remitamine@gmail.com>
Sat, 5 Dec 2015 19:58:44 +0000 (20:58 +0100)
committerremitamine <remitamine@gmail.com>
Sat, 5 Dec 2015 19:58:44 +0000 (20:58 +0100)
youtube_dl/extractor/nba.py

index 5a3eb0833049640d5bab95dd7f9faeb96ee74f36..9f99dbf362310228a138a15c000a937ab3b905d5 100644 (file)
@@ -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)