X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FFileList.py;h=4c5b98dfe25cfe159df74e5f5b2a4b0002a18d9b;hb=ee75b9b5a61fb4363008bc701e1ba9a42c0b922c;hp=841a2fe5fc6ba47be6a8b585648812b29a2cb0c8;hpb=c92c4778f26f253b4a2869ffaf4c89cbf090e66d;p=vuplus_dvbapp diff --git a/lib/python/Components/FileList.py b/lib/python/Components/FileList.py index 841a2fe..4c5b98d 100755 --- a/lib/python/Components/FileList.py +++ b/lib/python/Components/FileList.py @@ -16,6 +16,7 @@ EXTENSIONS = { "wav": "music", "ogg": "music", "flac": "music", + "dts": "dts", "jpg": "picture", "jpeg": "picture", "png": "picture", @@ -28,7 +29,15 @@ EXTENSIONS = { "mpeg": "movie", "mkv": "movie", "mp4": "movie", - "mov": "movie" + "mov": "movie", + "flv": "movie", + "m2ts": "movie", + "mts": "movie", + "3gp": "movie", + "3g2": "movie", + "wmv": "movie", + "asf": "movie", + "wma": "music", } def FileEntryComponent(name, absolute = None, isDir = False): @@ -196,6 +205,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: