self.drop_in_settings()
self.new_in_settings()
db[1].execute("\
- UPDATE timeline INNER JOIN epg_ch ON timeline.chtxt=epg_ch.chtxt SET timeline.chtxt=CONCAT(CONCAT(epg_ch.ch,'_'),epg_ch.csch)")
+ UPDATE timeline INNER JOIN epg_ch ON timeline.chtxt=epg_ch.chtxt SET timeline.chtxt=CONCAT(CONCAT(epg_ch.ch,'_'),epg_ch.csch) WHERE NOT (substring(epg_ch.bctype,1,2) = 'bs' OR substring(epg_ch.bctype,1,2) = 'cs')")
db[1].execute("\
- UPDATE timeline INNER JOIN epg_ch ON timeline.chtxt=epg_ch.chtxt SET timeline.chtxt=CONCAT('CS_',epg_ch.csch) WHERE timeline.chtxt LIKE 'CS%'")
+ UPDATE timeline INNER JOIN epg_ch ON timeline.chtxt=epg_ch.chtxt SET timeline.chtxt=CONCAT('BS_',epg_ch.ch) WHERE substring(epg_ch.bctype,1,2) = 'bs'")
+ db[1].execute("\
+ UPDATE timeline INNER JOIN epg_ch ON timeline.chtxt=epg_ch.chtxt SET timeline.chtxt=CONCAT('CS_',epg_ch.csch) WHERE substring(epg_ch.bctype,1,2) = 'cs'")
db[1].execute("\
ALTER TABLE epg_ch DROP ontv")
db[1].execute("\
try:\r
encodeMencoderSar(pin, pout,size,is24fps,quality,crf,deinterlace)\r
except Exception, inst:\r
- recdblist.Commonlogex("Error", "ts2x264(ts2x264.py)", str(type(inst)), str(inst)+traceback.format_exc(),log_level=200)\r
+ recdblist.addCommonlogEX("Error", "ts2x264(ts2x264.py)", str(type(inst)), str(inst)+traceback.format_exc(),log_level=200)\r
def encodeMencoderSar(pin,pout,size,is24fps,quality,crf,deinterlace=1):\r
- mencoder=configreader.getpath("mencoder")\r
+ mencoder=configreader.getConfPath("mencoder")\r
encvf=""\r
txt=""\r
encvf="-sws 9 -vf yadif=0,pp=l5"\r
except:\r
x264_thread="auto"\r
x264_addline=configreader.getConfEnv("x264_addline")\r
- if get_x264core_version()>103:\r
+ if getX264CoreVersion()>103:\r
x264res=u"--input-res "+x264streamsize\r
exe=u"nice -n 19 "+x264+" "+x264_sar+" "+x264crf+u" "+x264_addline+u" --colormatrix bt709 --threads "+x264_thread+" "+x264profile+x264preset+" "+x264tune+" "+x264fps+" "+x264res+" -o \""+pout+"\" "+pin\r
else:\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
+ #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
def mkv2mp4(pin,pout):\r
exeb = configreader.getConfPath(u"mkvextract")\r
exe = configreader.getConfPath(u"mp4Box")\r
- #dtsedit=configreader.getpath("DtsEdit")\r
+ #dtsedit=configreader.getConfPath("DtsEdit")\r
wineexe=configreader.getConfPath("wine")\r
dir=os.path.split(pin)[0]\r
title=os.path.split(pin)[1]\r
txt=txt+execcomd(exe3)+"\n"\r
except:\r
""\r
- recdblist.addlog(pin, txt, u"MKV2MP4-log")\r
+ recdblist.addLog(pin, txt, u"MKV2MP4-log")\r
txt = "\n####MKV2MP4-log####\n"+txt\r
time.sleep(10)\r
if status.getSettings_auto_del_tmp()==1:\r
#else:\r
os.waitpid(p0.pid, 0)\r
logt=unicode(p0.communicate()[0], "UTF-8")\r
- recdblist.addlog(pts,e0, u"Captionログ-コマンド")\r
- recdblist.addlog(pts,logt, u"Captionログ-詳細")\r
+ recdblist.addLog(pts,e0, u"Captionログ-コマンド")\r
+ recdblist.addLog(pts,logt, u"Captionログ-詳細")\r
if os.path.exists(pincap):\r
if os.path.getsize(pincap)>1000:\r
exe = configreader.getConfPath("mp4box")\r
txt= "error occures in execmp4box\n"\r
txt=txt+ str(type(inst))+"\n"\r
txt=txt+str(inst)\r
- recdblist.Commonlogex("Error", "excecmp4box(tv2mp4.py)", str(type(inst)), str(inst)+traceback.format_exc(),verbose_level=200,log_level=200)\r
- recdblist.addlog(pin, cmdn, u"MP4Boxログ-コマンド")\r
- recdblist.addlog(pin, txt, u"MP4Boxログ-詳細")\r
+ recdblist.addCommonlogEX("Error", "excecmp4box(tv2mp4.py)", str(type(inst)), str(inst)+traceback.format_exc(),verbose_level=200,log_level=200)\r
+ recdblist.addLog(pin, cmdn, u"MP4Boxログ-コマンド")\r
+ recdblist.addLog(pin, txt, u"MP4Boxログ-詳細")\r
time.sleep(5)\r
shutil.move(ptin,pin)\r
shutil.move(ptout,pout)\r
txt= "error occures in addmp4\n"\r
txt=txt+ str(type(inst))+"\n"\r
txt=txt+str(inst)\r
- recdblist.addlog(pout, cmdn, u"MP4Box追加ログ-コマンド")\r
- recdblist.addlog(pout, txt, u"MP4Box追加ログ-詳細")\r
+ recdblist.addLog(pout, cmdn, u"MP4Box追加ログ-コマンド")\r
+ recdblist.addLog(pout, txt, u"MP4Box追加ログ-詳細")\r
time.sleep(5)\r
shutil.move(ptadd,padd)\r
if os.path.exists(ptout):\r
os.remove(ptoutb)\r
else:\r
txtt=padd+u"のインポートエラー"\r
- recdblist.addlog(pout, txtt, u"MP4Box追加ログ-コマンド")\r
+ recdblist.addLog(pout, txtt, u"MP4Box追加ログ-コマンド")\r
shutil.move(ptoutb,pout)\r
time.sleep(5)\r
def execcomd(cmd):\r