From 9059bd186bc68bf5384a953ce9ae0313294d2059 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Fri, 28 Feb 2014 03:52:39 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20supe?= =?UTF-8?q?rTornado.py=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20video.?= =?UTF-8?q?html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superTornado.py | 3 +-- video.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/superTornado.py b/superTornado.py index c69250b..e6afae5 100644 --- a/superTornado.py +++ b/superTornado.py @@ -50,8 +50,6 @@ class VideoHandler(BaseHandler): if not self.current_user : self.redirect("/") return - name = tornado.escape.xhtml_escape(self.current_user) - urlretrieve('http://test:a@192.168.1.15/image.jpg?cidx=791836195', 'image/temp.jpg') self.render("video.html") @@ -77,6 +75,7 @@ class UnauthorizedHandler(BaseHandler): class AJAXHandler(BaseHandler): def post(self): + urlretrieve('http://test:a@192.168.1.15/image.jpg?cidx=791836195', 'image/temp.jpg') with open("image/temp.jpg", 'rb') as f: data = f.read() #self.set_header('Content-type', 'image/jpeg') diff --git a/video.html b/video.html index cc3b137..57899e7 100644 --- a/video.html +++ b/video.html @@ -19,7 +19,7 @@ } $(document).ready(refresh()) - setInterval('refresh()', 3000); + setInterval('refresh()', 2000);