Removed extra debug print. A cron to call /api/tick every minute is now required.

This commit is contained in:
dave 2014-08-26 15:35:41 -07:00
parent 36c04e5680
commit 75e853d0e1
2 changed files with 1 additions and 8 deletions

4
app.py
View File

@ -263,10 +263,6 @@ if __name__ == '__main__' or 'uwsgi' in __name__:
@cherrypy.expose
def getRecStatus(self, id):
print(self.REC)
print(self.REC.threads)
print(self.REC.getSelf())
print(self.REC.getSelf().threads)
return json.dumps({"data":self.REC.streamStatus(int(id))})
pysite = siteRoot()

View File

@ -36,7 +36,6 @@ class recordTick:
print("Ticked")
def tick(self):
print("tick (start): my threads: %s" % self.threads)
now=datetime.datetime.now()
#print("Tick start: %s" % now)
@ -55,7 +54,6 @@ class recordTick:
# terminate each downloader
self.endStream(endTime["streamid"])
print("tick (end): my threads: %s \n %s" % (self.threads, self))
#print("Tick end: %s" % now)
def startStream(self, id):
@ -66,7 +64,6 @@ class recordTick:
if not stream["id"] in self.threads:
# Create the recording thread
self.threads[stream["id"]] = recordThread(stream["url"], stream["directory"])
print("startStream: my threads: %s" % self.threads)
def endStream(self, id):
if id in self.threads:
@ -214,7 +211,7 @@ class recordThread(Thread):
os.unlink("files/temp/%s/%s"%(self.directory,f))
def cancel(self):
print("Cancelling %s" % self.url)
print("Closing %s" % self.url)
# turn off keep-alive dow the downloader
self.running = False
# Kill the download process