matchingPattern = param["types"]
path = param["path"]
- if path == "undefined":
+ if path == "Filesystems":
path = None
elif path is not None and not os_path.exists(path):
# TODO: returning something is better than just dying but is this return sane?
return (True, "executed %s" % param)
list = property(lambda self: self.result)
- lut = {"ServiceReference": 0
- , "IsDirectory": 1
- , "Root": 2
- }
+ lut = {
+ "ServiceReference": 0,
+ "IsDirectory": 1,
+ "Root": 2,
+ }
//START class File
function File(xml){
// parsing values from xml-element
- this.servicereference = getNodeContent(xml, 'e2servicereference');
+ this.servicereference = getNodeContent(xml, 'e2servicereference', 'Filesystems');
this.isdirectory = getNodeContent(xml, 'e2isdirectory');
- this.root = getNodeContent(xml, 'e2root', 'undefined');
+ this.root = getNodeContent(xml, 'e2root', 'Filesystems');
this.getServiceReference = function(){
return this.servicereference;
function loadMediaPlayer(directory){
debug("[loadMediaPlayer] called");
+ if(typeof(directory) == 'undefined') directory = 'Filesystems';
doRequest(url_mediaplayerlist+directory, incomingMediaPlayer, false);
}