From 7697b16e4acb2746451340291b2ebb93998761f0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 16 Feb 2013 21:46:29 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/polish/replace.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/oeb/polish/replace.py b/src/calibre/ebooks/oeb/polish/replace.py index 455fdccb63..0e2f672d42 100644 --- a/src/calibre/ebooks/oeb/polish/replace.py +++ b/src/calibre/ebooks/oeb/polish/replace.py @@ -11,7 +11,7 @@ from urlparse import urlparse from cssutils import replaceUrls -from calibre import guess_type +from calibre.ebooks.oeb.polish.container import guess_type from calibre.ebooks.oeb.base import (OEB_DOCS, OEB_STYLES, rewrite_links) class LinkReplacer(object): @@ -41,7 +41,7 @@ class LinkReplacer(object): return href def replace_links(container, link_map, frag_map=lambda name, frag:frag): - ncx_type = guess_type('toc.ncx')[0] + ncx_type = guess_type('toc.ncx') for name, media_type in container.mime_map.iteritems(): repl = LinkReplacer(name, container, link_map, frag_map) if media_type.lower() in OEB_DOCS: