From fc338adcb73e7da8f78175e2b1cc50ecd3e6cfe9 Mon Sep 17 00:00:00 2001 From: gn64_jp Date: Sun, 1 Jan 2012 15:04:34 +0000 Subject: [PATCH] fix moving option. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@885 4e526526-5e11-4fc0-8910-f8fd03428081 --- rec10/trunk/src/recque.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/rec10/trunk/src/recque.py b/rec10/trunk/src/recque.py index 64be4a8..219756a 100644 --- a/rec10/trunk/src/recque.py +++ b/rec10/trunk/src/recque.py @@ -1,7 +1,7 @@ #!/usr/bin/python # coding: UTF-8 # Rec10 TS Recording Tools -# Copyright (C) 2009-2011 Yukikaze +# Copyright (C) 2009-2012 Yukikaze import datetime import os import os.path @@ -20,9 +20,6 @@ def writeRecQue(parentpath,chtxt,title,opts): tmpoppath=os.path.join(tmppath,title+".recq") f=open(outputpath,"w") optt=opts - #optt=opts.replace("E","") - #optt=optt.replace("D","") - #optt=optt.replace("R","") str="99"+","+datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")+","+configreader.getConfEnv("iff")+","+chtxt+","+title+","+optt f.write(str.encode('utf-8')) f.close() @@ -54,15 +51,16 @@ def readRecQue(recquepath): break line = unicode(f.readline(),'utf-8') dbkey="" - if opts.find("E")>-1: - dbkey="" - opts=opts.replace("E","") + if opts.find("R")>-1: + dbkey=recdblist.REC_TS_DECODE_QUE + opts=opts.replace("R","") elif opts.find("D")>-1: dbkey=recdblist.REC_ENCODE_QUE opts=opts.replace("D","") - elif opts.find("R")>-1: - dbkey=recdblist.REC_TS_DECODE_QUE - opts=opts.replace("R","") + elif opts.find("E")>-1: + dbkey="" + opts=opts.replace("E","") + bt=datetime.datetime.now()+datetime.timedelta(minutes=5) et=bt+datetime.timedelta(minutes=30) btime=bt.strftime("%Y-%m-%d %H:%M:%S") -- 2.11.0