if (dt < 58 * 60 and dt > 30 * 60):\r
bctypet = chdb.searchCHFromChtxt(chtxt)['bctype']\r
chdatat = rec10d.rec10db.select_by_bctype_epg_ch(bctypet)\r
- dt1 = datetime.datetime.strptime(chdatat[0][4], "%Y-%m-%d %H:%M:%S")-datetime.datetime.now()\r
+ dt1=bt-datetime.datetime.strptime(chdatat[0][4], "%Y-%m-%d %H:%M:%S")\r
dt1 = dt1.days * 24 * 60 * 60 + dt1.seconds\r
if dt1 < 60 * 60:\r
recdata = epgdb.searchTime(title, btime, "5", chtxt)\r
execmp4box(pin, pout, e1)\r
addAudio(pints, pout, opt)\r
addCaption(pints, pout)\r
- #recdblist.addLog(pout, txt, "mp4boxログ-コマンド")\r
- #recdblist.addLog(pout, txt, "mp4boxログ-詳細")\r
if status.getSettings_auto_del_tmp()==1:\r
if os.path.exists(pout):\r
if re.search(opt,"1") or re.search(opt,"2"):\r
# except:
# ""
def tv2ts(pout, ch, csch, time):
- ext = os.path.splitext(pout)[1]#ext=".なんたら"
- tempt = os.path.split(pout)
- path = tempt[0]
if len(ch) > 2:#BS/CSは100とかCS??とかなので3文字以上
status.changeBSCSRecording(1)
else:
except:
""
def b252ts(pout, ch, csch):
- ext = os.path.splitext(pout)[1]#ext=".なんたら"
- tempt = os.path.split(pout)
- path = tempt[0]
b252tsmix(pout + ".b25", pout + ".tsmix")
tch=u"0"
if csch!=u"0":
tch=u"101"
elif ch==u"102":
tch=u"102"
- #else:
- # tch=ch
tsmix2ts(pout + ".tsmix", pout, tch)
- if os.access(pout, os.F_OK):
- try:
- #os.remove(path + "/" + t + ext)
- ""
- except:
- ""
def tv2b25ts(pout, ch, time):
exe = configreader.getConfPath('recpt1')
if len(ch) > 2:#BS/CSは100とかCS??とかなので3文字以上
global h_number
z_ascii = u"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz !”#$%&’()*+,−./:;<=>?@[¥]^_‘{|}〜 〜"
h_ascii = u"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz !\"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ -"
-#z_ascii = z_ascii+Ur"\Ue28892\Uefbc8e"
-#h_ascii = h_ascii+Ur"\Uefbc8d."
z_ascii_sp = unichr(0x2212)+unichr(0xff0e)
h_ascii_sp = unichr(0x002d)+unichr(0x002e)
z_number = u"0123456789"
"""
return code is 1:Alphabet 2:Hiragana 3:Katakana 4:Kanji
"""
- #recdblist.printutf8(character)
- #recdblist.printutf8(type(character))
- #character=character.encode('UTF-8')
- #recdblist.printutf8(character)
- #recdblist.printutf8(type(character))
chcode=ord(character)
- #recdblist.printutf8(ord(chcode))
if chcode>=0x0000 and chcode<=0x007F:
return 1
elif chcode>=0x3040 and chcode<=0x309F: