From 0f7e8dcfa24620c3055ac2b88615187a71e344e7 Mon Sep 17 00:00:00 2001 From: BrutuZ Date: Thu, 12 Mar 2020 21:42:35 -0300 Subject: [PATCH] int_or_none --- youtube_dl/extractor/hanime.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/hanime.py b/youtube_dl/extractor/hanime.py index 8f1c81e9c..5a2d2ed87 100644 --- a/youtube_dl/extractor/hanime.py +++ b/youtube_dl/extractor/hanime.py @@ -59,8 +59,8 @@ class HanimeIE(InfoExtractor): formats = [] 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')) - width = float_or_none(f.get('width')) - height = float_or_none(f.get('height')) + width = int_or_none(f.get('width')) + height = int_or_none(f.get('height')) format = { 'width': width, 'height': height,