diff --git a/README.md b/README.md index 971a9e0..696c553 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,10 @@ The app relies and includes the following scripts: * [Kobo Aura H2O](http://kcc.iosphe.re/Samples/Ubunchu-KoAH2O.kepub.epub) ## CHANGELOG +####4.6.2: +* Fixed critical MOBI header bug +* Fixed metadata encoding error + ####4.6.1: * Fixed KEPUB TOC generator * Added warning about too small input files diff --git a/kcc.iss b/kcc.iss index 10a26c8..5deb343 100644 --- a/kcc.iss +++ b/kcc.iss @@ -1,5 +1,5 @@ #define MyAppName "Kindle Comic Converter" -#define MyAppVersion "4.6.1" +#define MyAppVersion "4.6.2" #define MyAppPublisher "Ciro Mattia Gonano, Paweł Jastrzębski" #define MyAppURL "http://kcc.iosphe.re/" #define MyAppExeName "KCC.exe" diff --git a/kcc/__init__.py b/kcc/__init__.py index 6a54f0c..10c7f42 100644 --- a/kcc/__init__.py +++ b/kcc/__init__.py @@ -1,4 +1,4 @@ -__version__ = '4.6.1' +__version__ = '4.6.2' __license__ = 'ISC' __copyright__ = '2012-2015, Ciro Mattia Gonano , Pawel Jastrzebski ' __docformat__ = 'restructuredtext en' diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index d8be58f..06a1c61 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -38,6 +38,7 @@ from PIL import Image from subprocess import STDOUT, PIPE from psutil import Popen, virtual_memory from scandir import walk +from html import escape try: from PyQt5 import QtCore except ImportError: @@ -313,18 +314,15 @@ def buildOPF(dstdir, title, filelist, cover=None): "portrait\n", "pre-paginated\n"]) if options.iskindle and options.profile != 'Custom': - f.writelines(["true\n", - "true\n", - "comic\n", - "true\n", - "true\n", - "true\n", - "portrait\n", - "", - str(deviceres[0]) + "x" + str(deviceres[1]) + "\n", - "" + writingmode + "\n", - "#ffffff\n", - "0\n"]) + f.writelines(["\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n"]) f.writelines(["\n\n\n", " 0: options.authors = list(set(options.authors)) options.authors.sort() @@ -765,7 +763,7 @@ def getComicInfo(path, originalPath): if xml.data['Bookmarks']: options.chapters = xml.data['Bookmarks'] if xml.data['Summary']: - options.summary = xml.data['Summary'] + options.summary = escape(xml.data['Summary']) os.remove(xmlPath)