X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FFileList.py;h=1b7e81f5c382d8bee684e8d285d76e4e7e261f5c;hp=841a2fe5fc6ba47be6a8b585648812b29a2cb0c8;hb=db34d7e342d82f9767045de76b791fee2357bbc4;hpb=c92c4778f26f253b4a2869ffaf4c89cbf090e66d diff --git a/lib/python/Components/FileList.py b/lib/python/Components/FileList.py index 841a2fe..1b7e81f 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: