diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-11-22 13:06:20 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-11-22 13:06:20 +0000 |
| commit | e5784ad0bf002b26befbbffbf5ebea5a01ceb2c7 (patch) | |
| tree | 7315b87c9a1aeaa77ee7a3613da3fc00102f41ad /lib/python/Components | |
| parent | 2e3001a75fe02e8c02c09228b89a7fbb9c238b70 (diff) | |
| download | enigma2-e5784ad0bf002b26befbbffbf5ebea5a01ceb2c7.tar.gz enigma2-e5784ad0bf002b26befbbffbf5ebea5a01ceb2c7.zip | |
some picplayer fixes
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: |
