1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-16 03:06:33 +00:00

Code cleanup

This commit is contained in:
Ciro Mattia Gonano
2013-03-05 11:27:50 +01:00
parent 2ef148908a
commit 1a9db245bf
3 changed files with 19 additions and 25 deletions

View File

@@ -36,12 +36,6 @@ import cbxarchive
import pdfjpgextract import pdfjpgextract
def sort_nicely(l):
convert = lambda text: int(text) if text.isdigit() else text
alphanum_key = lambda key: [convert(c) for c in re.split('([0-9]+)', key)]
l.sort(key=alphanum_key)
def buildHTML(path, imgfile): def buildHTML(path, imgfile):
filename = getImageFileName(imgfile) filename = getImageFileName(imgfile)
if filename is not None: if filename is not None:

View File

@@ -24,6 +24,7 @@ __docformat__ = 'restructuredtext en'
import os import os
class PdfJpgExtract: class PdfJpgExtract:
def __init__(self, origFileName): def __init__(self, origFileName):
self.origFileName = origFileName self.origFileName = origFileName
@@ -69,4 +70,3 @@ class PdfJpgExtract:
njpg += 1 njpg += 1
i = iend i = iend

View File

@@ -57,7 +57,7 @@ setup(
version=VERSION, version=VERSION,
author="Ciro Mattia Gonano", author="Ciro Mattia Gonano",
author_email="ciromattia@gmail.com", author_email="ciromattia@gmail.com",
description=("A tool to convert comics (CBR/CBZ/PDFs/image folders) to Mobipocket."), description="A tool to convert comics (CBR/CBZ/PDFs/image folders) to Mobipocket.",
license="ISC License (ISCL)", license="ISC License (ISCL)",
keywords="kindle comic mobipocket mobi cbz cbr manga", keywords="kindle comic mobipocket mobi cbz cbr manga",
url="http://github.com/ciromattia/kcc", url="http://github.com/ciromattia/kcc",