1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-05 02:32:44 +01:00

[gfycat] Ensure filesize is int

This commit is contained in:
Sergey M․ 2017-06-09 00:24:23 +07:00
parent cc69a3de1b
commit 87f5646937
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -82,7 +82,7 @@ def _real_extract(self, url):
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,