projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc69a3d
)
[gfycat] Ensure filesize is int
author
Sergey M․
<dstftw@gmail.com>
Thu, 8 Jun 2017 17:24:23 +0000
(
00:24
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 8 Jun 2017 17:24:23 +0000
(
00:24
+0700)
youtube_dl/extractor/gfycat.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/gfycat.py
b/youtube_dl/extractor/gfycat.py
index 884700c52b90b53fdc8f581378d28611d7c36f33..45ccc11c10a18033c5d53d0416903425a6ef2385 100644
(file)
--- 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,