enable m2ts file extension
[enigma2.git] / lib / python / Components / FileList.py
index 222512eab861180ef3d26810040442ac4af63b7c..1b7e81f5c382d8bee684e8d285d76e4e7e261f5c 100755 (executable)
@@ -23,11 +23,13 @@ EXTENSIONS = {
                "ts": "movie",
                "avi": "movie",
                "divx": "movie",
+               "m4v": "movie",
                "mpg": "movie",
                "mpeg": "movie",
                "mkv": "movie",
                "mp4": "movie",
-               "mov": "movie"
+               "mov": "movie",
+               "m2ts": "movie",
        }
 
 def FileEntryComponent(name, absolute = None, isDir = False):
@@ -195,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: