diff options
author | Paweł Jastrzębski <pawelj@iosphe.re> | 2017-11-10 19:54:07 +0100 |
---|---|---|
committer | Paweł Jastrzębski <pawelj@iosphe.re> | 2017-11-10 19:54:07 +0100 |
commit | fe554c20aa04ef97dac8031dcd82b654a8f147ba (patch) | |
tree | d39e27b8c491641ef4317a6f21affcd2cd299971 /kindlecomicconverter/comic2ebook.py | |
parent | Updated build enviroment (diff) | |
download | kcc-fe554c20aa04ef97dac8031dcd82b654a8f147ba.tar.gz kcc-fe554c20aa04ef97dac8031dcd82b654a8f147ba.tar.bz2 kcc-fe554c20aa04ef97dac8031dcd82b654a8f147ba.zip |
Fixed dot procesing for real this time
Diffstat (limited to '')
-rwxr-xr-x | kindlecomicconverter/comic2ebook.py | 5 |
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 |