mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 02:25:11 +00:00
[nba] use int instead of int_or_none
This commit is contained in:
parent
edc70f4aaf
commit
0017486dca
1 changed files with 3 additions and 3 deletions
|
@ -84,9 +84,9 @@ def _real_extract(self, url):
|
||||||
mobj = re.search(r'(\d+)x(\d+)(?:_(\d+))?', key)
|
mobj = re.search(r'(\d+)x(\d+)(?:_(\d+))?', key)
|
||||||
if mobj:
|
if mobj:
|
||||||
format_info.update({
|
format_info.update({
|
||||||
'width': int_or_none(mobj.group(1)),
|
'width': int(mobj.group(1)),
|
||||||
'height': int_or_none(mobj.group(2)),
|
'height': int(mobj.group(2)),
|
||||||
'tbr': int_or_none(mobj.group(3)),
|
'tbr': int(mobj.group(3)),
|
||||||
})
|
})
|
||||||
formats.append(format_info)
|
formats.append(format_info)
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
Loading…
Reference in a new issue