From 1436b14003b1986a8280f7aded188e2aa87487b8 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 19 May 2014 14:07:08 +0200 Subject: [PATCH] fixes --- oml/media/txt.py | 4 ---- oml/meta/openlibrary.py | 1 - 2 files changed, 5 deletions(-) diff --git a/oml/media/txt.py b/oml/media/txt.py index 9ed25bf..cdbacd3 100644 --- a/oml/media/txt.py +++ b/oml/media/txt.py @@ -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') diff --git a/oml/meta/openlibrary.py b/oml/meta/openlibrary.py index 38b65fd..4d209ef 100644 --- a/oml/meta/openlibrary.py +++ b/oml/meta/openlibrary.py @@ -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'):