from Tools.LoadPixmap import LoadPixmap
EXTENSIONS = {
+ "m4a": "music",
+ "mp2": "music",
"mp3": "music",
"wav": "music",
"ogg": "music",
+ "flac": "music",
"jpg": "picture",
"jpeg": "picture",
"png": "picture",
"bmp": "picture",
"ts": "movie",
"avi": "movie",
+ "divx": "movie",
"mpg": "movie",
"mpeg": "movie",
"mkv": "movie",
- "avi": "movie",
+ "mp4": "movie"
}
def FileEntryComponent(name, absolute = None, isDir = False):
def changeDir(self, directory, select = None):
self.list = []
- if directory and not os_path.isdir(directory):
- directory = None
# if we are just entering from the list of mount points:
if self.current_directory is None:
if directory and self.showMountpoints:
self.list.append(FileEntryComponent(name = p.description, absolute = path, isDir = True))
files = [ ]
directories = [ ]
+ elif directory is None:
+ files = [ ]
+ directories = [ ]
elif self.useServiceRef:
root = eServiceReference("2:0:1:0:0:0:0:0:0:0:" + directory)
if self.additional_extensions: