fix default icon

This commit is contained in:
j 2014-10-31 19:49:36 +01:00
parent 9901f9e6c3
commit 89d9ab4f11
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
import os
import xml.etree.ElementTree as ET
import zipfile
from io import StringIO
from io import BytesIO
import re
from PIL import Image
@ -48,7 +48,7 @@ def cover(path):
break
if not data:
img = Image.new('RGB', (80, 128))
o = StringIO()
o = BytesIO()
img.save(o, format='jpeg')
data = o.getvalue()
o.close()