X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FFileList.py;h=e78912cd0e9cbcd37c39404b24ae16d2cf62bc17;hp=222512eab861180ef3d26810040442ac4af63b7c;hb=3292d021b8caf9b02c3a1a942a0f9572861db3e3;hpb=c430cd50ce7bc9e0a91bccb558e54dafc8d5ef75 diff --git a/lib/python/Components/FileList.py b/lib/python/Components/FileList.py index 222512e..e78912c 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", @@ -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: