support dts/3gp/3g2/mts playback.
[vuplus_dvbapp] / lib / python / Components / FileList.py
index 222512e..e78912c 100755 (executable)
@@ -16,6 +16,7 @@ EXTENSIONS = {
                "wav": "music",
                "ogg": "music",
                "flac": "music",
+               "dts": "dts",
                "jpg": "picture",
                "jpeg": "picture",
                "png": "picture",
@@ -23,11 +24,17 @@ EXTENSIONS = {
                "ts": "movie",
                "avi": "movie",
                "divx": "movie",
+               "m4v": "movie",
                "mpg": "movie",
                "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):
@@ -195,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: