-- vim:set ft=lua: dofile(mg.script_name:gsub('[^\\/]*$','')..'util.lua') ct=CreateContentBuilder(GZIP_THRESHOLD_BYTE) ct:Append(DOCTYPE_HTML4_STRICT..[=[
]=]..DefaultHeadContents()..[=[

# 録画済み一覧

]=]) for i=page*pageCount+1,math.min(#a,(page+1)*pageCount) do v=a[i] ct:Append('
' ..FormatTimeAndDuration(v.startTime, v.durationSecond) ..' | '..v.serviceName..' | '..v.title..' | '..(v.protectFlag and '🔑' or '-') ..'0 and ' class="drops"' or v.scrambles>0 and ' class="scrambles"' or '')..'>'..v.drops..'/'..v.scrambles ..''..v.comment..'
\n') end ct:Append([=[

]=]) ct:Finish() mg.write(ct:Pop(Response(200,'text/html','utf-8',ct.len,ct.gzip)..'\r\n'))