From de305d2d950f6ffc088bb9f2b26e9299045fb604 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 15 May 2010 10:14:29 -0600 Subject: [PATCH] EPUB Input: Fix typo that caused incorrect processing of EPUB files with more than one identifier element and encrypted fonts --- src/calibre/ebooks/epub/input.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/ebooks/epub/input.py b/src/calibre/ebooks/epub/input.py index 48699521c7..0f94fb674a 100644 --- a/src/calibre/ebooks/epub/input.py +++ b/src/calibre/ebooks/epub/input.py @@ -32,9 +32,9 @@ class EPUBInput(InputFormatPlugin): key = None for item in opf.identifier_iter(): scheme = None - for key in item.attrib.keys(): - if key.endswith('scheme'): - scheme = item.get(key) + for xkey in item.attrib.keys(): + if xkey.endswith('scheme'): + scheme = item.get(xkey) if (scheme and scheme.lower() == 'uuid') or \ (item.text and item.text.startswith('urn:uuid:')): key = str(item.text).rpartition(':')[-1]