int_or_none
This commit is contained in:
parent
9aaf20b0ed
commit
0f7e8dcfa2
@ -59,8 +59,8 @@ class HanimeIE(InfoExtractor):
|
|||||||
formats = []
|
formats = []
|
||||||
for f in api_json:
|
for f in api_json:
|
||||||
item_url = sanitize_url(f.get('url')) or sanitize_url('https://hanime.tv/api/v1/m3u8s/%s.m3u8' % f.get('id'))
|
item_url = sanitize_url(f.get('url')) or sanitize_url('https://hanime.tv/api/v1/m3u8s/%s.m3u8' % f.get('id'))
|
||||||
width = float_or_none(f.get('width'))
|
width = int_or_none(f.get('width'))
|
||||||
height = float_or_none(f.get('height'))
|
height = int_or_none(f.get('height'))
|
||||||
format = {
|
format = {
|
||||||
'width': width,
|
'width': width,
|
||||||
'height': height,
|
'height': height,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user