Fixes cover filesnames

This commit is contained in:
Mouse Reeve 2020-11-07 10:59:08 -08:00
parent 1ffa21b67d
commit dd4e323e18

View file

@ -84,7 +84,7 @@ class Connector(AbstractConnector):
if not response.ok: if not response.ok:
response.raise_for_status() response.raise_for_status()
image_name = str(uuid4()) + cover_url.split('.')[-1] image_name = str(uuid4()) + '.' + cover_url.split('.')[-1]
image_content = ContentFile(response.content) image_content = ContentFile(response.content)
return [image_name, image_content] return [image_name, image_content]