support dts/3gp/3g2/mts playback.
[vuplus_dvbapp] / lib / python / Components / FileList.py
index 841a2fe..e78912c 100755 (executable)
@@ -16,6 +16,7 @@ EXTENSIONS = {
                "wav": "music",
                "ogg": "music",
                "flac": "music",
+               "dts": "dts",
                "jpg": "picture",
                "jpeg": "picture",
                "png": "picture",
@@ -28,7 +29,12 @@ EXTENSIONS = {
                "mpeg": "movie",
                "mkv": "movie",
                "mp4": "movie",
-               "mov": "movie"
+               "mov": "movie",
+               "flv": "movie",
+               "m2ts": "movie",
+               "mts": "movie",
+               "3gp": "movie",
+               "3g2": "movie",
        }
 
 def FileEntryComponent(name, absolute = None, isDir = False):
@@ -196,6 +202,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: