X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FFileList.py;h=1d71514b9d105ab6dbb2efbed7ba3118ef96b06d;hp=222512eab861180ef3d26810040442ac4af63b7c;hb=fbb3e9c9bcbd783d3236d0ff3109b2be7fa24177;hpb=91325961f07c9285bc778c1b413c1714def4b47a diff --git a/lib/python/Components/FileList.py b/lib/python/Components/FileList.py index 222512e..1d71514 100755 --- a/lib/python/Components/FileList.py +++ b/lib/python/Components/FileList.py @@ -23,6 +23,7 @@ EXTENSIONS = { "ts": "movie", "avi": "movie", "divx": "movie", + "m4v": "movie", "mpg": "movie", "mpeg": "movie", "mkv": "movie", @@ -195,6 +196,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: