1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-01-03 05:24:43 +00:00

FIX:(#2347) module error when attempting to add storyarc

This commit is contained in:
evilhero 2019-10-04 12:48:02 -04:00
parent 9fb9ab4d73
commit 8d2e0ae1fe

View file

@ -522,6 +522,8 @@ class WebInterface(object):
logger.warn('Unable to download image from CV URL link: %s [Status Code returned: %s]' % (imageurl, r.status_code))
else:
if r.headers.get('Content-Encoding') == 'gzip':
import gzip
from StringIO import StringIO
buf = StringIO(r.content)
f = gzip.GzipFile(fileobj=buf)