-- vim:set ft=lua: dofile(mg.script_name:gsub('[^\\/]*$','')..'util.lua') onid=GetVarInt(mg.request_info.query_string,'onid') tsid=GetVarInt(mg.request_info.query_string,'tsid') sid=GetVarInt(mg.request_info.query_string,'sid') edcb.htmlEscape=15 ServiceList=CustomServiceList() st=ServiceList[1] if onid and tsid and sid then for j,v in ipairs(ServiceList) do if onid==v.onid and tsid==v.tsid and sid==v.sid then st=v break end end end now=os.time() a=edcb.EnumEventInfo({{onid=(onid or st.onid), tsid=(tsid or st.tsid), sid=(sid or st.sid)}}, {startTime=os.date('*t',now-6*3600), durationSecond=24*3600}) or {} table.sort(a, function(a,b) return os.time(a.startTime)リモート視聴'} ct.js='\n' ..'\n' ct.main='
\n' ..'
\n' ..'
\n' ..'
\n' ..'
\n' ..player('\n', {multi=true, dual=true}, false, true) ..'
\n' ..[=[
]=] NetworkList={} for i,v in ipairs(NetworkIndex()) do NetworkList[i]={} end for i,v in ipairs(ServiceList) do if oneseg or not v.partialReceptionFlag then table.insert(NetworkList[NetworkIndex(v)], '
\n' ..'
\n' ..'
\n' ..'
\n
'..v.service_name..'
\n' ..'
\n' ..'
' ..'
\n' ) if onid==v.onid and tsid==v.tsid and sid==v.sid then ct.title=''..v.service_name..''; end end end ctt={} label={} ct.css='\n' ct.main=ct.main..'
\n' ..'\n'..table.concat(label) ..'
\n
\n'..table.concat(ctt) ..'
\n
\n
\n' ct.menu='\n' ct=template(ct) mg.write(ct:Pop(Response(200,'text/html','utf-8',ct.len)..(ct.gzip and 'Content-Encoding: gzip\r\n' or '')..'\r\n'))