OSDN Git Service

fix moving option.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sun, 1 Jan 2012 15:04:34 +0000 (15:04 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sun, 1 Jan 2012 15:04:34 +0000 (15:04 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@885 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/recque.py

index 64be4a8..219756a 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/python\r
 # coding: UTF-8\r
 # Rec10 TS Recording Tools\r
-# Copyright (C) 2009-2011 Yukikaze\r
+# Copyright (C) 2009-2012 Yukikaze\r
 import datetime\r
 import os\r
 import os.path\r
@@ -20,9 +20,6 @@ def writeRecQue(parentpath,chtxt,title,opts):
     tmpoppath=os.path.join(tmppath,title+".recq")\r
     f=open(outputpath,"w")\r
     optt=opts\r
-    #optt=opts.replace("E","")\r
-    #optt=optt.replace("D","")\r
-    #optt=optt.replace("R","")\r
     str="99"+","+datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")+","+configreader.getConfEnv("iff")+","+chtxt+","+title+","+optt\r
     f.write(str.encode('utf-8'))\r
     f.close()\r
@@ -54,15 +51,16 @@ def readRecQue(recquepath):
                 break\r
         line = unicode(f.readline(),'utf-8')\r
     dbkey=""\r
-    if opts.find("E")>-1:\r
-        dbkey=""\r
-        opts=opts.replace("E","")\r
+    if opts.find("R")>-1:\r
+        dbkey=recdblist.REC_TS_DECODE_QUE\r
+        opts=opts.replace("R","")\r
     elif opts.find("D")>-1:\r
         dbkey=recdblist.REC_ENCODE_QUE\r
         opts=opts.replace("D","")\r
-    elif opts.find("R")>-1:\r
-        dbkey=recdblist.REC_TS_DECODE_QUE\r
-        opts=opts.replace("R","")\r
+    elif opts.find("E")>-1:\r
+        dbkey=""\r
+        opts=opts.replace("E","")\r
+    \r
     bt=datetime.datetime.now()+datetime.timedelta(minutes=5)\r
     et=bt+datetime.timedelta(minutes=30)\r
     btime=bt.strftime("%Y-%m-%d %H:%M:%S")\r