X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FDreamInfoHandler.py;h=85e2b5339bc6eb33614c75f16e14033208f8d5b9;hb=9d1fc274f19c85ef8b1cf143bca2ff0ef5218b86;hp=075c9953af1b72197c8935a4ff2b026d43aaa4f5;hpb=a6f7c725e21a4b6ed064e92b453331837d12f267;p=vuplus_dvbapp diff --git a/lib/python/Components/DreamInfoHandler.py b/lib/python/Components/DreamInfoHandler.py index 075c995..85e2b53 100755 --- a/lib/python/Components/DreamInfoHandler.py +++ b/lib/python/Components/DreamInfoHandler.py @@ -255,8 +255,8 @@ class DreamInfoHandler: for indexfile in os.listdir(self.directory[0]): if indexfile.startswith("index"): - if os.path.splitext(indexfile)[0][-3:-2] is not "_": #we first catch all non translated indexfiles - indexfileList.append(os.path.splitext(indexfile)[0]) + if indexfile.endswith("_en.xml"): #we first catch all english indexfiles + indexfileList.append(os.path.splitext(indexfile)[0][:-3]) if len(indexfileList): for file in indexfileList: @@ -267,7 +267,7 @@ class DreamInfoHandler: self.readIndex(self.directory[0] + "/", neededFile + '_' + self.language + '.xml') else: #print "reading original index file" - self.readIndex(self.directory[0] + "/", neededFile + '.xml') + self.readIndex(self.directory[0] + "/", neededFile + '_en.xml') if prerequisites: for package in self.packagesIndexlist[:]: