mirror of
https://github.com/ciromattia/kcc
synced 2025-12-16 03:06:33 +00:00
Code cleanup
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user