示例#1
0
文件: local.py 项目: kktuax/youtupi
    def POST(self):
        data = json.load(StringIO(web.data()))
        from youtupi.playlist import removeVideo

        removeVideo(data["id"])
        if os.path.isfile(data["id"]):
            os.remove(data["id"])
示例#2
0
文件: local.py 项目: nzurku/youtupi
 def POST(self):
     data = json.load(StringIO(web.data()))
     from youtupi.playlist import removeVideo
     removeVideo(data['id'])
     if os.path.isfile(data['id']):
         os.remove(data['id'])
示例#3
0
	def DELETE(self):
		data = json.load(StringIO(web.data()))
		removeVideo(data['id'])
		web.seeother('/playlist')
示例#4
0
	def DELETE(self):
		data = json.load(StringIO(web.data()))
		removeVideo(data['id'])
		web.seeother('playlist')