mirror of
https://github.com/ciromattia/kcc
synced 2025-12-19 20:51:45 +00:00
Replace '+' in filenames (kindlegen does not like it!)
This commit is contained in:
BIN
dist/KindleComicConverter_osx_2.0.zip
vendored
BIN
dist/KindleComicConverter_osx_2.0.zip
vendored
Binary file not shown.
@@ -193,9 +193,13 @@ def genEpubStruct(path):
|
|||||||
for file in filenames:
|
for file in filenames:
|
||||||
if getImageFileName(file) is not None:
|
if getImageFileName(file) is not None:
|
||||||
# put credits at the end
|
# put credits at the end
|
||||||
if "credits" in file.lower():
|
if "credit" in file.lower():
|
||||||
os.rename(os.path.join(dirpath,file), os.path.join(dirpath,'ZZZ999_'+file))
|
os.rename(os.path.join(dirpath,file), os.path.join(dirpath,'ZZZ999_'+file))
|
||||||
file = 'ZZZ999_'+file
|
file = 'ZZZ999_'+file
|
||||||
|
if "+" in file.lower():
|
||||||
|
newfilename = file.replace('+','_')
|
||||||
|
os.rename(os.path.join(dirpath,file), os.path.join(dirpath,newfilename))
|
||||||
|
file = newfilename
|
||||||
filelist.append(buildHTML(dirpath,file))
|
filelist.append(buildHTML(dirpath,file))
|
||||||
if not chapter:
|
if not chapter:
|
||||||
chapterlist.append((dirpath,filelist[-1][1]))
|
chapterlist.append((dirpath,filelist[-1][1]))
|
||||||
|
|||||||
Reference in New Issue
Block a user