From 4a94bf4d6faf38e72f6cb33f5102fb352f95dda1 Mon Sep 17 00:00:00 2001 From: "beville@gmail.com" Date: Sun, 16 Dec 2012 18:08:59 +0000 Subject: [PATCH] Ignore image files that begin with ".". They're probably cruft. git-svn-id: http://comictagger.googlecode.com/svn/trunk@265 6c5673fe-1810-88d6-992b-cd32ca31540c --- comicarchive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comicarchive.py b/comicarchive.py index 6f09c21..c44c329 100644 --- a/comicarchive.py +++ b/comicarchive.py @@ -571,7 +571,7 @@ class ComicArchive: # make a sub-list of image files page_list = [] for name in files: - if ( name[-4:].lower() in [ ".jpg", "jpeg", ".png" ] ): + if ( name[-4:].lower() in [ ".jpg", "jpeg", ".png" ] and os.path.basename(name)[0] != "." ): page_list.append(name) return page_list