From: Akos Polster Date: Wed, 15 Sep 2010 22:18:38 +0000 (+0200) Subject: Fix tOC in "The Awakening" X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=844480eeab063e4426c66ff2d88e971bc7873aaa;p=dorian Fix tOC in "The Awakening" --- diff --git a/model/book.cpp b/model/book.cpp index 0f958b6..8b7bd4a 100644 --- a/model/book.cpp +++ b/model/book.cpp @@ -186,6 +186,8 @@ bool Book::parse() ncxFileName = content["ncx"].href; } else if (content.contains("ncxtoc")) { ncxFileName = content["ncxtoc"].href; + } else if (content.contains("toc")) { + ncxFileName = content["toc"].href; } else { qDebug() << "No NCX table of contents"; } diff --git a/model/ncxhandler.h b/model/ncxhandler.h index e62d357..f04ade1 100644 --- a/model/ncxhandler.h +++ b/model/ncxhandler.h @@ -31,13 +31,13 @@ public: bool endElement(const QString &namespaceUri, const QString &name, const QString &qName) { - Trace t("NcxHandler::endElement" + name); + Trace t("NcxHandler::endElement " + name); (void)namespaceUri; (void)qName; if (name == "text") { contentTitle = currentText; } else if (name == "navPoint") { - qDebug() << "url" << contentUrl << "\ntitl" << contentTitle + qDebug() << "url" << contentUrl << "\ntitle" << contentTitle << "\nid" << contentId; Book::ContentItem item; item.href = contentUrl; diff --git a/pkg/changelog b/pkg/changelog index 4f45c49..6aa6142 100644 --- a/pkg/changelog +++ b/pkg/changelog @@ -1,3 +1,9 @@ +dorian (0.2.1-1) unstable; urgency=low + + * Fix TOC in "The Awakening" (and possibly other Google books) + + -- Akos Polster Thu, 16 Sep 2010 02:00:00 +0200 + dorian (0.2.0-1) unstable; urgency=low * Add support for Windows @@ -5,6 +11,7 @@ dorian (0.2.0-1) unstable; urgency=low * Fix tracing on Windows * Fix TOC and navigation with O'Reilly books * Reduce RAM footprint + * Fix library icon on Mac -- Akos Polster Sun, 5 Sep 2010 02:00:00 +0200 diff --git a/pkg/version.txt b/pkg/version.txt index 0a25d5a..fd32d72 100644 --- a/pkg/version.txt +++ b/pkg/version.txt @@ -1 +1 @@ -"0.2.0" +"0.2.1"