about summary refs log tree commit diff
path: root/kindlecomicconverter
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@iosphe.re>2017-11-10 17:32:34 +0100
committerPaweł Jastrzębski <pawelj@iosphe.re>2017-11-10 17:32:34 +0100
commitac81a6be4b646dcf519fea9e9450f2120733ec36 (patch)
treec75708e0cee4f51009f1178d20aac860179e8fbb /kindlecomicconverter
parentExperimental KFX output (diff)
downloadkcc-ac81a6be4b646dcf519fea9e9450f2120733ec36.tar.gz
kcc-ac81a6be4b646dcf519fea9e9450f2120733ec36.tar.bz2
kcc-ac81a6be4b646dcf519fea9e9450f2120733ec36.zip
Fixed dot processing in directory names
Diffstat (limited to 'kindlecomicconverter')
-rwxr-xr-xkindlecomicconverter/comic2ebook.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py
index ffff62f..8714fcf 100755
--- a/kindlecomicconverter/comic2ebook.py
+++ b/kindlecomicconverter/comic2ebook.py
@@ -900,6 +900,7 @@ def createNewTome():
 def slugify(value, isdir):
     if isdir:
         value = slugifyExt(value, regex_pattern=r'[^-a-z0-9_\.]+')
+        value = value.rstrip('.')
     else:
         value = slugifyExt(value)
     value = sub(r'0*([0-9]{4,})', r'\1', sub(r'([0-9]+)', r'0000\1', value, count=2))