-- vim:set ft=lua: dofile(mg.script_name:gsub('[^\\/]*$','')..'util.lua') ct=CreateContentBuilder(GZIP_THRESHOLD_BYTE) ct:Append([=[ 設定/録画動作 - EDCB

設定/録画動作

]=]) srvIni='EpgTimerSrv.ini' post=AssertPost() if post and not ALLOW_SETTING then post=nil ct:Append('
変更は許可されていません
\n') end if post then edcb.WritePrivateProfile('SET','WakeTime',GetVarInt(post,'wakeTime',0) or 5,srvIni) edcb.WritePrivateProfile('SET','RecEndMode',GetVarInt(post,'recEndMode',0,3) or 2,srvIni) edcb.WritePrivateProfile('SET','Reboot',GetVarInt(post,'reboot')==1,srvIni) edcb.WritePrivateProfile('NO_SUSPEND','NoUsePC',GetVarInt(post,'noUsePC')==1,srvIni) edcb.WritePrivateProfile('NO_SUSPEND','NoUsePCTime',GetVarInt(post,'noUsePCTime',0) or 3,srvIni) edcb.WritePrivateProfile('NO_SUSPEND','NoFileStreaming',GetVarInt(post,'noFileStreaming')==1,srvIni) edcb.WritePrivateProfile('NO_SUSPEND','NoShareFile',GetVarInt(post,'noShareFile')==1,srvIni) edcb.WritePrivateProfile('NO_SUSPEND','NoStandbyTime',GetVarInt(post,'noStandbyTime',0) or 10,srvIni) edcb.WritePrivateProfile('SET','StartMargin',GetVarInt(post,'startMargin') or 5,srvIni) edcb.WritePrivateProfile('SET','EndMargin',GetVarInt(post,'endMargin') or 2,srvIni) edcb.WritePrivateProfile('SET','RecAppWakeTime',GetVarInt(post,'recAppWakeTime',0) or 2,srvIni) edcb.WritePrivateProfile('SET','RecMinWake',GetVarInt(post,'recMinWake')==1,srvIni) edcb.WritePrivateProfile('SET','RecView',(GetVarInt(post,'openViewForViewing',1,1) or 0)+ (GetVarInt(post,'openViewForRec',1,1) or 0)*2+ (GetVarInt(post,'openViewAlways',1,1) or 0)*4,srvIni) edcb.WritePrivateProfile('SET','RecNW',GetVarInt(post,'recNW')==1,srvIni) edcb.WritePrivateProfile('SET','PgInfoLog',GetVarInt(post,'pgInfoLog')==1,srvIni) edcb.WritePrivateProfile('SET','PgInfoLogAsUtf8',GetVarInt(post,'pgInfoLogAsUtf8')==1,srvIni) edcb.WritePrivateProfile('SET','DropLog',GetVarInt(post,'dropLog')==1,srvIni) edcb.WritePrivateProfile('SET','RecOverWrite',GetVarInt(post,'recOverWrite')==1,srvIni) edcb.WritePrivateProfile('SET','ProcessPriority',GetVarInt(post,'processPriority',0,5) or 3,srvIni) edcb.WritePrivateProfile('SET','KeepDisk',GetVarInt(post,'keepDisk')==1,srvIni) edcb.WritePrivateProfile('SET','Caption',GetVarInt(post,'enableCaption')==1,srvIni) edcb.WritePrivateProfile('SET','Data',GetVarInt(post,'enableData')==1,srvIni) ct:Append('
変更しました
\n') edcb.ReloadSetting(false) end edcb.htmlEscape=15 wakeTime=edcb.GetPrivateProfile('SET','WakeTime',5,srvIni) recEndMode=tonumber(edcb.GetPrivateProfile('SET','RecEndMode',2,srvIni)) or 2 reboot=edcb.GetPrivateProfile('SET','Reboot',0,srvIni)~='0' noUsePC=edcb.GetPrivateProfile('NO_SUSPEND','NoUsePC',0,srvIni)~='0' noUsePCTime=edcb.GetPrivateProfile('NO_SUSPEND','NoUsePCTime',3,srvIni) noFileStreaming=edcb.GetPrivateProfile('NO_SUSPEND','NoFileStreaming',0,srvIni)~='0' noShareFile=edcb.GetPrivateProfile('NO_SUSPEND','NoShareFile',0,srvIni)~='0' noStandbyTime=edcb.GetPrivateProfile('NO_SUSPEND','NoStandbyTime',10,srvIni) startMargin=edcb.GetPrivateProfile('SET','StartMargin',5,srvIni) endMargin=edcb.GetPrivateProfile('SET','EndMargin',2,srvIni) recAppWakeTime=edcb.GetPrivateProfile('SET','RecAppWakeTime',2,srvIni) recMinWake=edcb.GetPrivateProfile('SET','RecMinWake',1,srvIni)~='0' recView=tonumber(edcb.GetPrivateProfile('SET','RecView',1,srvIni)) or 1 recNW=edcb.GetPrivateProfile('SET','RecNW',0,srvIni)~='0' pgInfoLog=edcb.GetPrivateProfile('SET','PgInfoLog',1,srvIni)~='0' pgInfoLogAsUtf8=edcb.GetPrivateProfile('SET','PgInfoLogAsUtf8',0,srvIni)~='0' dropLog=edcb.GetPrivateProfile('SET','DropLog',1,srvIni)~='0' recOverWrite=edcb.GetPrivateProfile('SET','RecOverWrite',0,srvIni)~='0' processPriority=tonumber(edcb.GetPrivateProfile('SET','ProcessPriority',3,srvIni)) or 3 keepDisk=edcb.GetPrivateProfile('SET','KeepDisk',1,srvIni)~='0' enableCaption=edcb.GetPrivateProfile('SET','Caption',1,srvIni)~='0' enableData=edcb.GetPrivateProfile('SET','Data',0,srvIni)~='0' ct:Append([=[
録画、EPG取得終了後のデフォルト動作
 
復帰処理開始時間
録画開始 分前 (再起動ありの場合は+5分)
録画後動作の抑制条件
指定プロセスが起動している場合 (前方一致)
分以内に予約がある場合
分以内にあった場合

録画マージンのデフォルト
開始(秒) 終了(秒)
対象データのデフォルト
録画用アプリ 分前に起動する
プロセス優先度





Viewを起動する
]=]) ct:Finish() mg.write(ct:Pop(Response(200,'text/html','utf-8',ct.len)..(ct.gzip and 'Content-Encoding: gzip\r\n' or '')..'\r\n'))