aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/foxgay.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-06-09 00:22:14 +0700
committerSergey M․ <dstftw@gmail.com>2017-06-09 00:22:14 +0700
commitcc69a3de1b0980d34e21719fd4c264575d620bb4 (patch)
treeb2497c82d7b6802bc49fc39fa36c5289bbeb309e /youtube_dl/extractor/foxgay.py
parent15aeeb11882c9597614ce6e249968bfdf7830e8a (diff)
[foxgay] Ensure height is int
Diffstat (limited to 'youtube_dl/extractor/foxgay.py')
-rw-r--r--youtube_dl/extractor/foxgay.py3
1 files changed, 2 insertions, 1 deletions
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)))]