Пример #1
0
    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
 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')