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
This commit is contained in:
beville@gmail.com 2012-12-16 18:08:59 +00:00
parent a602c42f0e
commit 4a94bf4d6f

View File

@ -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