about summary refs log tree commit diff
path: root/kindlecomicconverter/comic2ebook.py
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@iosphe.re>2017-11-10 19:54:07 +0100
committerPaweł Jastrzębski <pawelj@iosphe.re>2017-11-10 19:54:07 +0100
commitfe554c20aa04ef97dac8031dcd82b654a8f147ba (patch)
treed39e27b8c491641ef4317a6f21affcd2cd299971 /kindlecomicconverter/comic2ebook.py
parentUpdated build enviroment (diff)
downloadkcc-fe554c20aa04ef97dac8031dcd82b654a8f147ba.tar.gz
kcc-fe554c20aa04ef97dac8031dcd82b654a8f147ba.tar.bz2
kcc-fe554c20aa04ef97dac8031dcd82b654a8f147ba.zip
Fixed dot procesing for real this time
Diffstat (limited to '')
-rwxr-xr-xkindlecomicconverter/comic2ebook.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py
index 8714fcf..f97f290 100755
--- a/kindlecomicconverter/comic2ebook.py
+++ b/kindlecomicconverter/comic2ebook.py
@@ -899,10 +899,9 @@ def createNewTome():
 
 def slugify(value, isdir):
     if isdir:
-        value = slugifyExt(value, regex_pattern=r'[^-a-z0-9_\.]+')
-        value = value.rstrip('.')
+        value = slugifyExt(value, regex_pattern=r'[^-a-z0-9_\.]+').strip('.')
     else:
-        value = slugifyExt(value)
+        value = slugifyExt(value).strip('.')
     value = sub(r'0*([0-9]{4,})', r'\1', sub(r'([0-9]+)', r'0000\1', value, count=2))
     return value