This commit is contained in:
j 2014-05-19 14:07:08 +02:00
parent a35eb0db92
commit 1436b14003
2 changed files with 0 additions and 5 deletions

View file

@ -8,11 +8,7 @@ from utils import find_isbns
from StringIO import StringIO from StringIO import StringIO
import Image import Image
from pdf import ql_cover
def cover(path): def cover(path):
if sys.platform == 'darwin':
return ql_cover(path)
img = Image.new('RGB', (80, 128)) img = Image.new('RGB', (80, 128))
o = StringIO() o = StringIO()
img.save(o, format='jpeg') img.save(o, format='jpeg')

View file

@ -103,7 +103,6 @@ def format(info, return_all=False):
value = COUNTRIES.get(value, value) value = COUNTRIES.get(value, value)
elif key == 'covers': elif key == 'covers':
value = 'https://covers.openlibrary.org/b/id/%s.jpg' % value[0] value = 'https://covers.openlibrary.org/b/id/%s.jpg' % value[0]
value = COUNTRIES.get(value, value)
elif key == 'languages': elif key == 'languages':
value = resolve_names(value) value = resolve_names(value)
elif not return_all and isinstance(value, list) and key not in ('publish_places'): elif not return_all and isinstance(value, list) and key not in ('publish_places'):