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'):