fixes
This commit is contained in:
parent
a35eb0db92
commit
1436b14003
2 changed files with 0 additions and 5 deletions
|
@ -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')
|
||||
|
|
|
@ -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'):
|
||||
|
|
Loading…
Reference in a new issue