[nba] use int_or_none for tbr
authorremitamine <remitamine@gmail.com>
Sat, 5 Dec 2015 20:04:22 +0000 (21:04 +0100)
committerremitamine <remitamine@gmail.com>
Sat, 5 Dec 2015 20:04:22 +0000 (21:04 +0100)
youtube_dl/extractor/nba.py

index 9f99dbf362310228a138a15c000a937ab3b905d5..7c6b7841db251d3ee2178de680e60cbb6900b0fc 100644 (file)
@@ -86,7 +86,7 @@ class NBAIE(InfoExtractor):
                     format_info.update({
                         'width': int(mobj.group(1)),
                         'height': int(mobj.group(2)),
-                        'tbr': int(mobj.group(3)),
+                        'tbr': int_or_none(mobj.group(3)),
                     })
                 formats.append(format_info)
         self._sort_formats(formats)