From a16bde2cf3e2858da852cb1880b43feeab0e2d13 Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Mon, 17 Jun 2013 14:06:12 +0200 Subject: added content info from stream to epg updated some channels --- index.html | 52 +++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 7 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index 3ac9ddf..84e4af6 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@ // // -var Version = "0.20.2" +var Version = "0.20.4" for (var x = 0; x < 10; x++) { if (minChan[x]) { @@ -966,8 +966,8 @@ function OSDhtml(){ osdname.innerHTML = Left(channelsnames[currChan],30); } osdepg.innerHTML = "

" + EPG[0][7][currChan] + "

\n

" + EPG[1][7][currChan] + "

"; - osdepginfo.innerHTML = "

" + currChan + "\uE003" + channelsnames[currChan] + "

" + AudioInfo[currChan] + "

" + EPG[0][7][currChan] + EPG[0][8][currChan] + "

\n

" + EPG[0][4][currChan] + "

\n

" + Left(EPG[0][5][currChan],750) + "

"; - osdepginfonext.innerHTML = "

" + currChan + "\uE003" + channelsnames[currChan] + "

" + EPG[1][7][currChan] + EPG[1][8][currChan] + "

\n

" + EPG[1][4][currChan] + "

\n

" + Left(EPG[1][5][currChan],750) + "

"; + osdepginfo.innerHTML = "

" + currChan + "\uE003" + channelsnames[currChan] + "

" + AudioInfo[currChan] + "

" + EPG[0][7][currChan] + EPG[0][9][currChan] + EPG[0][8][currChan] + "

\n

" + EPG[0][4][currChan] + "

\n

" + Left(EPG[0][5][currChan],750) + "

"; + osdepginfonext.innerHTML = "

" + currChan + "\uE003" + channelsnames[currChan] + "

" + EPG[1][7][currChan] + EPG[1][9][currChan] + EPG[1][8][currChan] + "

\n

" + EPG[1][4][currChan] + "

\n

" + Left(EPG[1][5][currChan],750) + "

"; } function updateOSDtime(timchan) { @@ -1169,11 +1169,20 @@ function GetEPG(epgchan) EPG[0][4][epgchan] = ""; EPG[0][5][epgchan] = ""; if (event.parentalRating) { - EPG[0][8][epgchan] = "( from " + (event.parentalRating + 3) + ")"; + EPG[0][8][epgchan] = "
( from " + (event.parentalRating + 3) + ")"; } else { - EPG[0][8][epgchan] = ""; + EPG[0][8][epgchan] = ""; } + if (event.contentNibbles) { + connib = event.contentNibbles; + Nibbles(); + EPG[0][9][epgchan] = "
" + content; + } else { + EPG[0][9][epgchan] = ""; + } + + if(EPGShortnow) { EPG[0][4][epgchan] = EPGShortnow; } else { @@ -1184,6 +1193,9 @@ function GetEPG(epgchan) } else { EPG[0][5][epgchan] = ""; } + + if (EPG[0][5][epgchan] = EPG[0][4][epgchan]) { EPG[0][5][epgchan] = "";} + updateOSDtime(epgchan); event = eitCache.getFollowingEvent(eitService); @@ -1203,11 +1215,18 @@ function GetEPG(epgchan) EPG[1][4][epgchan] = ""; EPG[1][5][epgchan] = ""; if (event.parentalRating) { - EPG[1][8][epgchan] = "( from " + (event.parentalRating + 3) + ")"; + EPG[1][8][epgchan] = "
( from " + (event.parentalRating + 3) + ")"; } else { - EPG[1][8][epgchan] = ""; + EPG[1][8][epgchan] = ""; } + if (event.contentNibbles) { + connib = event.contentNibbles; + Nibbles(); + EPG[1][9][epgchan] = "
" + content; + } else { + EPG[1][9][epgchan] = ""; + } if(EPGShortnext) { EPG[1][4][epgchan] = EPGShortnext; @@ -1219,6 +1238,9 @@ function GetEPG(epgchan) } else { EPG[1][5][epgchan] = ""; } + + if (EPG[1][5][epgchan] = EPG[1][4][epgchan]) { EPG[1][5][epgchan] = "";} + tijd = event.time; date = new Date(tijd*1000); tijd = date.toUTCString(); @@ -1242,6 +1264,22 @@ function GetEPG(epgchan) } +function Nibbles() { + content = ""; + if (connib >= 0x00001000 && connib < 0x00002000) { content = "Movie/Drama"; } + if (connib >= 0x00002000 && connib < 0x00003000) { content = "News/Current affairs"; } + if (connib >= 0x00003000 && connib < 0x00004000) { content = "Show/Game show"; } + if (connib >= 0x00004000 && connib < 0x00005000) { content = "Sports"; } + if (connib >= 0x00005000 && connib < 0x00006000) { content = "Children's/Youth programmes"; } + if (connib >= 0x00006000 && connib < 0x00007000) { content = "Music/Ballet/Dance"; } + if (connib >= 0x00007000 && connib < 0x00008000) { content = "Arts/Culture (without music)"; } + if (connib >= 0x00008000 && connib < 0x00009000) { content = "Social/Political issues/Economics"; } + if (connib >= 0x00009000 && connib < 0x0000A000) { content = "Education/Science/Factual topics"; } + if (connib >= 0x0000A000 && connib < 0x0000B000) { content = "Leisure hobbies"; } + if (connib >= 0x0000B000 && connib < 0x0000C000) { content = "Special characteristics"; } + alert(connib); +} + function GetSchedule(schchan,tablelength){ SI = ""; -- cgit v1.2.3