about summary refs log tree commit diff
path: root/kindlecomicconverter
diff options
context:
space:
mode:
Diffstat (limited to 'kindlecomicconverter')
-rw-r--r--kindlecomicconverter/shared.py2
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]