3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009-2010 Yukikaze
8 def searchFromCHtxt(chtxtin):
9 chtxtt=chtxtin.replace("_0","_%")
11 for datum in rec10d.rec10db.select_by_chtxt_epg_ch(chtxtt):
12 rett = {'bctype':datum[0], 'chtxt':datum[1], 'ch':datum[2], 'csch':datum[3], 'update':datum[4]}
17 def getChCSchFromCHtxt(chtxt):
18 ret = {'csch':chtxt.split("_")[1],'ch':chtxt.split("_")[0]}
20 def searchFromBctype(bctypein):
22 for datum in rec10d.rec10db.select_by_bctype_epg_ch(bctypein):
23 rett = {'bctype':datum[0], 'chtxt':datum[1], 'ch':datum[2], 'csch':datum[3], 'update':datum[4]}
28 def searchFromCH(chin):
30 for datum in rec10d.rec10db.select_by_ch_epg_ch(chin):
31 rett = {'bctype':datum[0], 'chtxt':datum[1], 'ch':datum[2], 'csch':datum[3], 'update':datum[4]}
38 for datum in rec10d.rec10db.select_all_epg_ch():
39 rett = {'bctype':datum[0], 'chtxt':datum[1], 'ch':datum[2], 'csch':datum[3], 'update':datum[4]}
50 rec10d.rec10db.set_new_status("8")
51 for datum in rec10d.rec10db.select_get_update_epg_ch("6"):
53 if bctype == "cs1" or bctype == u"cs1":
57 elif bctype == "cs2" or bctype == u"cs2":
61 elif bctype == "bs" or bctype == u"bs":
65 elif bctype == "hu" or bctype == u"hu":