[gfycat] Ensure filesize is int
authorSergey M․ <dstftw@gmail.com>
Thu, 8 Jun 2017 17:24:23 +0000 (00:24 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 8 Jun 2017 17:24:23 +0000 (00:24 +0700)
youtube_dl/extractor/gfycat.py

index 884700c52b90b53fdc8f581378d28611d7c36f33..45ccc11c10a18033c5d53d0416903425a6ef2385 100644 (file)
@@ -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,