def add_media(folder): media.add(folder)
def add(self, uri, isadmin = None): if isadmin == None: if auth.authorizePlaylist() != True: return "denied" media.add(uri) return "success"