diff options
| author | acid-burn <acidburn@opendreambox.org> | 2009-09-08 16:03:30 +0200 |
|---|---|---|
| committer | acid-burn <acidburn@opendreambox.org> | 2009-09-08 16:03:30 +0200 |
| commit | b6a2eec01cc6629134b470bea09198bcfe9385c3 (patch) | |
| tree | b6e1ae8c1edc532152dc265cc46ee09ceb82cafb /lib/python/Components/DreamInfoHandler.py | |
| parent | 1dc03ac8f376954d7734214089e56b22f22c7a91 (diff) | |
| download | enigma2-b6a2eec01cc6629134b470bea09198bcfe9385c3.tar.gz enigma2-b6a2eec01cc6629134b470bea09198bcfe9385c3.zip | |
DreamInfoHandler.py: small update for new index.xml's.
Diffstat (limited to 'lib/python/Components/DreamInfoHandler.py')
| -rwxr-xr-x | lib/python/Components/DreamInfoHandler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Components/DreamInfoHandler.py b/lib/python/Components/DreamInfoHandler.py index 075c9953..85e2b533 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[:]: |
