aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/FileList.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/FileList.py')
-rwxr-xr-xlib/python/Components/FileList.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/Components/FileList.py b/lib/python/Components/FileList.py
index 841a2fe5..1b7e81f5 100755
--- a/lib/python/Components/FileList.py
+++ b/lib/python/Components/FileList.py
@@ -28,7 +28,8 @@ EXTENSIONS = {
"mpeg": "movie",
"mkv": "movie",
"mp4": "movie",
- "mov": "movie"
+ "mov": "movie",
+ "m2ts": "movie",
}
def FileEntryComponent(name, absolute = None, isDir = False):
@@ -196,6 +197,9 @@ class FileList(MenuList):
if (self.matchingPattern is None) or re_compile(self.matchingPattern).search(path):
self.list.append(FileEntryComponent(name = name, absolute = x , isDir = False))
+ if self.showMountpoints and len(self.list) == 0:
+ self.list.append(FileEntryComponent(name = _("nothing connected"), absolute = None, isDir = False))
+
self.l.setList(self.list)
if select is not None: