projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edc70f4
)
[nba] use int instead of int_or_none
author
remitamine
<remitamine@gmail.com>
Sat, 5 Dec 2015 19:58:44 +0000
(20:58 +0100)
committer
remitamine
<remitamine@gmail.com>
Sat, 5 Dec 2015 19:58:44 +0000
(20:58 +0100)
youtube_dl/extractor/nba.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nba.py
b/youtube_dl/extractor/nba.py
index 5a3eb0833049640d5bab95dd7f9faeb96ee74f36..9f99dbf362310228a138a15c000a937ab3b905d5 100644
(file)
--- 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)