aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/gfycat.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-06-09 00:24:23 +0700
committerSergey M․ <dstftw@gmail.com>2017-06-09 00:24:23 +0700
commit87f5646937f52643a32f80210adf2647e3bd5d25 (patch)
tree26bb34295074b874566df0f2758dc0a7089d440c /youtube_dl/extractor/gfycat.py
parentcc69a3de1b0980d34e21719fd4c264575d620bb4 (diff)
[gfycat] Ensure filesize is int
Diffstat (limited to 'youtube_dl/extractor/gfycat.py')
-rw-r--r--youtube_dl/extractor/gfycat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/gfycat.py b/youtube_dl/extractor/gfycat.py
index 884700c52..45ccc11c1 100644
--- a/youtube_dl/extractor/gfycat.py
+++ b/youtube_dl/extractor/gfycat.py
@@ -82,7 +82,7 @@ class GfycatIE(InfoExtractor):
video_url = gfy.get('%sUrl' % format_id)
if not video_url:
continue
- filesize = gfy.get('%sSize' % format_id)
+ filesize = int_or_none(gfy.get('%sSize' % format_id))
formats.append({
'url': video_url,
'format_id': format_id,