3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009 Yukikaze
10 dbpath = str(os.path.dirname(os.path.abspath(__file__))) + "/" + "ch.db"
11 if __name__ == "__main__":
12 print "Hello Rec10 Recording Que Search.";
15 録画フォルダを検索し、各QUEの実行状況を表示する
17 b25list = glob.glob(path + "/*.b25")
19 ##b25f is title.ts.b25 avi is title.avi
20 dir = os.path.split(b25f)[0]
21 title = os.path.split(b25f)[1]
22 title = title.replace(".ts.b25", "")
23 avipath = os.path.join(dir, title + ".avi")
24 tspath = os.path.join(dir, title + ".ts")
25 b25f = b25f.replace(".ts.b25", ".avi")
27 if os.path.isfile(tspath):##tsファイルが存在している
28 dtime = time.time()-os.path.getmtime(tspath)
31 if os.path.getsize(tspath) > 1 * 1000 * 1000:##最終更新から22分以上経過かつ1MB以上
37 if os.path.isfile(avipath):##tsファイルが存在している
38 dtime = time.time()-os.path.getmtime(avipath)
41 if os.path.getsize(avipath) > 1 * 1000 * 1000:##最終更新から22分以上経過かつ1MB以上
47 print title + ":" + mode
49 path = configreader.getpath("recpath")