コード例 #1
0
ファイル: api.py プロジェクト: Sakaki/nicoanimemanager
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"}
コード例 #2
0
ファイル: api.py プロジェクト: Sakaki/nicoanimemanager
def delrec(params):
    channel = params["channel"]
    config.removeRecording(channel)

    return True, None