From 819285a4572823e343f0d1ab88e2c68c2caf2677 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 2 Dec 2008 00:14:00 +0100 Subject: add "divx" as known file extension --- lib/python/Components/FileList.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/python/Components/FileList.py') diff --git a/lib/python/Components/FileList.py b/lib/python/Components/FileList.py index e028ec3a..231fde2f 100644 --- a/lib/python/Components/FileList.py +++ b/lib/python/Components/FileList.py @@ -21,6 +21,7 @@ EXTENSIONS = { "bmp": "picture", "ts": "movie", "avi": "movie", + "divx": "movie", "mpg": "movie", "mpeg": "movie", "mkv": "movie", -- cgit v1.2.3 From 94b2320a63cb6731178fd0b81e27498eff806033 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 4 Dec 2008 13:10:46 +0100 Subject: add m4a as audio extension --- lib/python/Components/FileList.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/python/Components/FileList.py') diff --git a/lib/python/Components/FileList.py b/lib/python/Components/FileList.py index 231fde2f..a93d4441 100644 --- a/lib/python/Components/FileList.py +++ b/lib/python/Components/FileList.py @@ -10,6 +10,7 @@ from enigma import RT_HALIGN_LEFT, eListboxPythonMultiContent, \ from Tools.LoadPixmap import LoadPixmap EXTENSIONS = { + "m4a": "music", "mp2": "music", "mp3": "music", "wav": "music", -- cgit v1.2.3 From c0ecfb78c4aa1beb6c0a525c5bf9ac3653bd46ae Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 9 Feb 2009 15:09:32 +0100 Subject: properly handle: non-accessible directories, 'None' (=list of mountpoints) with showMountPoints=false --- lib/python/Components/FileList.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/python/Components/FileList.py') diff --git a/lib/python/Components/FileList.py b/lib/python/Components/FileList.py index a93d4441..84abf328 100644 --- a/lib/python/Components/FileList.py +++ b/lib/python/Components/FileList.py @@ -119,8 +119,6 @@ class FileList(MenuList): def changeDir(self, directory, select = None): self.list = [] - if directory and not os_path.isdir(directory): - directory = None # if we are just entering from the list of mount points: if self.current_directory is None: if directory and self.showMountpoints: @@ -138,6 +136,9 @@ class FileList(MenuList): self.list.append(FileEntryComponent(name = p.description, absolute = path, isDir = True)) files = [ ] directories = [ ] + elif directory is None: + files = [ ] + directories = [ ] elif self.useServiceRef: root = eServiceReference("2:0:1:0:0:0:0:0:0:0:" + directory) if self.additional_extensions: -- cgit v1.2.3