浏览代码

[gfycat] Ensure filesize is int

Sergey M․ 8 年之前
父节点
当前提交
87f5646937
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/gfycat.py

+ 1 - 1
youtube_dl/extractor/gfycat.py

@@ -82,7 +82,7 @@ class GfycatIE(InfoExtractor):
             video_url = gfy.get('%sUrl' % format_id)
             video_url = gfy.get('%sUrl' % format_id)
             if not video_url:
             if not video_url:
                 continue
                 continue
-            filesize = gfy.get('%sSize' % format_id)
+            filesize = int_or_none(gfy.get('%sSize' % format_id))
             formats.append({
             formats.append({
                 'url': video_url,
                 'url': video_url,
                 'format_id': format_id,
                 'format_id': format_id,