diff options
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/FileList.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/Components/FileList.py b/lib/python/Components/FileList.py index 0c8a8814..7621ccb0 100644 --- a/lib/python/Components/FileList.py +++ b/lib/python/Components/FileList.py @@ -25,6 +25,7 @@ EXTENSIONS = { "jpg": "picture", "jpeg": "picture", "png": "picture", + "bmp": "picture", "ts": "movie", "avi": "movie", "mpg": "movie", @@ -86,7 +87,10 @@ class FileList(MenuList, HTMLComponent, GUIComponent): if directory is None: # present available mountpoints print "listing partitions:" for p in harddiskmanager.getMountedPartitions(): - self.list.append(FileEntryComponent(name = p.description, absolute = p.mountpoint, isDir = True)) + if p.mountpoint == "/": + self.list.append(FileEntryComponent(name = p.description, absolute = p.mountpoint, isDir = True)) + else: + self.list.append(FileEntryComponent(name = p.description, absolute = p.mountpoint + "/", isDir = True)) files = [ ] directories = [ ] elif self.useServiceRef: |
