def delanime(params): title = params["title"] channel = params["channel"] config.removeRecording(channel) path = "html/video/"+title if title != "" and os.path.exists(path): shutil.rmtree(path) return True, {"result" : "success"}
def delrec(params): channel = params["channel"] config.removeRecording(channel) return True, None