mirror of
https://github.com/ciromattia/kcc
synced 2025-12-15 10:46:40 +00:00
Code cleanup
This commit is contained in:
@@ -36,12 +36,6 @@ import cbxarchive
|
||||
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):
|
||||
filename = getImageFileName(imgfile)
|
||||
if filename is not None:
|
||||
|
||||
@@ -24,6 +24,7 @@ __docformat__ = 'restructuredtext en'
|
||||
|
||||
import os
|
||||
|
||||
|
||||
class PdfJpgExtract:
|
||||
def __init__(self, origFileName):
|
||||
self.origFileName = origFileName
|
||||
@@ -69,4 +70,3 @@ class PdfJpgExtract:
|
||||
|
||||
njpg += 1
|
||||
i = iend
|
||||
|
||||
|
||||
2
setup.py
2
setup.py
@@ -57,7 +57,7 @@ setup(
|
||||
version=VERSION,
|
||||
author="Ciro Mattia Gonano",
|
||||
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)",
|
||||
keywords="kindle comic mobipocket mobi cbz cbr manga",
|
||||
url="http://github.com/ciromattia/kcc",
|
||||
|
||||
Reference in New Issue
Block a user