Components/DreamInfoHandler.py: ignore old meta-xml index files. refs #578
authoracid-burn <acid-burn@opendreambox.org>
Wed, 22 Sep 2010 13:39:36 +0000 (15:39 +0200)
committeracid-burn <acid-burn@opendreambox.org>
Wed, 22 Sep 2010 13:41:29 +0000 (15:41 +0200)
lib/python/Components/DreamInfoHandler.py

index dd140cb..4030567 100755 (executable)
@@ -222,6 +222,8 @@ class DreamInfoHandler:
                for indexfile in os.listdir(self.directory[0]):
                        if indexfile.startswith("index-"):
                                if indexfile.endswith(".xml"):
+                                       if indexfile[-7:-6] == "_":
+                                               continue
                                        indexfileList.append(indexfile)
                if len(indexfileList):
                        for file in indexfileList: