-- vim:set ft=lua: dofile(mg.script_name:gsub('[^\\/]*$','')..'util.lua') vtag=GetVarInt(mg.request_info.query_string,'vtag') or 0 ct=CreateContentBuilder(GZIP_THRESHOLD_BYTE) ct:Append([=[ 録画済み詳細 - EDCB

録画済み詳細

]=]) id=GetVarInt(mg.request_info.query_string,'id') or 0 post=AssertPost() if post then if mg.get_var(post,'del') then edcb.DelRecFileInfo(id) ct:Append('
削除しました
\n') end end w=edcb.GetRecFileInfo(id) edcb.htmlEscape=15 v=edcb.GetRecFileInfo(id) if v then ct:Append('
\n' ..'
番組名
'..FormatTimeAndDuration(v.startTime, v.durationSecond)..'
'..v.serviceName..'
'..v.title..'
\n' ..'
結果
'..v.comment..'
\n' ..'
ドロップ
'..v.drops..'
\n' ..'
スクランブル
'..v.scrambles..'
\n' ..'
ファイル →Video' or '">DL')..'
\n') ref=w and NativeToDocumentPath(w.recFilePath) if ref then for i,ext in ipairs({'.mp4','.webm',''}) do ff=edcb.FindFile and edcb.FindFile(w.recFilePath..ext,1) if ff then ct:Append((vtag==i and '' or '')) if ext=='' then for j=0,9 do ct:Append('\n'..(j==0 and '[' or '')..(vtag==j+10 and '
' or '')) end fsec,fsize=0,0 f=edcb.io.open(w.recFilePath,'rb') if f then fsec,fsize=GetDurationSec(f) f:close() end ct:Append('] ('..('%dm%02ds|'):format(math.floor(fsec/60),fsec%60)..math.floor(fsize/1048576)..'M)
\n') else ct:Append(' ('..math.floor(ff[1].size/1048576)..'M)
\n') end end end end ct:Append('
\n' ..(#v.programInfo>0 and '
番組情報
\n'..DecorateUri(v.programInfo):gsub('\r?\n', '
\n')..'
\n' or '') ..(#v.errInfo>0 and '
エラーログ
\n'..string.gsub(v.errInfo, '\r?\n', '
\n')..'
\n' or '') ..'
-
\n' ..'
\n' ..'\n' ..'\n' ..'
\n' ..'
\n') end ct:Append([=[
]=]) 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'))