3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009-2010 Yukikaze
8 def searchCHFromChtxt(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 searchCHFromBctype(bctypein):
19 for datum in rec10d.rec10db.select_by_bctype_epg_ch(bctypein):
20 rett = {'bctype':datum[0], 'chtxt':datum[1], 'ch':datum[2], 'csch':datum[3], 'update':datum[4]}
25 def searchCHFromCh(chin):
27 for datum in rec10d.rec10db.select_by_ch_epg_ch(chin):
28 rett = {'bctype':datum[0], 'chtxt':datum[1], 'ch':datum[2], 'csch':datum[3], 'update':datum[4]}
33 def searchAllCHFromCh(chin):
35 for datum in rec10d.rec10db.select_by_ch_epg_ch(chin):
36 rett = {'bctype':datum[0], 'chtxt':datum[1], 'ch':datum[2], 'csch':datum[3], 'update':datum[4]}
43 for datum in rec10d.rec10db.select_all_epg_ch():
44 rett = {'bctype':datum[0], 'chtxt':datum[1], 'ch':datum[2], 'csch':datum[3], 'update':datum[4]}
55 rec10d.rec10db.set_new_status("8")
56 for datum in rec10d.rec10db.select_get_update_epg_ch("6"):
58 if bctype == "cs1" or bctype == u"cs1":
62 elif bctype == "cs2" or bctype == u"cs2":
66 elif bctype == "bs" or bctype == u"bs":
73 def changeCHShow(chtxt,isshow):
74 rec10d.rec10db.change_isshow_epg_ch(chtxt, isshow)