diff options
Diffstat (limited to 'kindlecomicconverter/shared.py')
-rw-r--r-- | kindlecomicconverter/shared.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kindlecomicconverter/shared.py b/kindlecomicconverter/shared.py index d2a358f..507873b 100644 --- a/kindlecomicconverter/shared.py +++ b/kindlecomicconverter/shared.py @@ -47,7 +47,7 @@ class HTMLStripper(HTMLParser): def getImageFileName(imgfile): name, ext = os.path.splitext(imgfile) ext = ext.lower() - if name.startswith('.') or ext not in ['.png', '.jpg', '.jpeg', '.gif', '.webp']: + if (name.startswith('.') and len(name) == 1) or ext not in ['.png', '.jpg', '.jpeg', '.gif', '.webp']: return None return [name, ext] |