1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-23 16:26:40 +00:00

[nba] use int instead of int_or_none

This commit is contained in:
remitamine 2015-12-05 20:58:44 +01:00
parent edc70f4aaf
commit 0017486dca

View 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)