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
import Image
from pdf import ql_cover
def cover(path):
if sys.platform == 'darwin':
return ql_cover(path)
img = Image.new('RGB', (80, 128))
o = StringIO()
img.save(o, format='jpeg')

View File

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