From: Sergey M․ Date: Thu, 8 Jun 2017 17:22:14 +0000 (+0700) Subject: [foxgay] Ensure height is int X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=cc69a3de1b0980d34e21719fd4c264575d620bb4;p=youtube-dl [foxgay] Ensure height is int --- diff --git a/youtube_dl/extractor/foxgay.py b/youtube_dl/extractor/foxgay.py index e887ae488..512a10645 100644 --- a/youtube_dl/extractor/foxgay.py +++ b/youtube_dl/extractor/foxgay.py @@ -5,6 +5,7 @@ import itertools from .common import InfoExtractor from ..utils import ( get_element_by_id, + int_or_none, remove_end, ) @@ -46,7 +47,7 @@ class FoxgayIE(InfoExtractor): formats = [{ 'url': source, - 'height': resolution, + 'height': int_or_none(resolution), } for source, resolution in zip( video_data['sources'], video_data.get('resolutions', itertools.repeat(None)))]