summaryrefslogtreecommitdiff
path: root/smarttv-client
diff options
context:
space:
mode:
authorthlo <smarttv640@gmail.com>2013-07-30 21:51:52 +0200
committerthlo <t.lohmar@gmx.de>2013-07-30 21:51:52 +0200
commit8b2100da27ce304e62ee5020610ee9ae5ed48b0b (patch)
tree37eca75cf6798091ff8b26cdf9f32c2386831a33 /smarttv-client
parent5fc6d139f2a185eab9a53f2db384476dfd66f08b (diff)
downloadvdr-plugin-smarttvweb-8b2100da27ce304e62ee5020610ee9ae5ed48b0b.tar.gz
vdr-plugin-smarttvweb-8b2100da27ce304e62ee5020610ee9ae5ed48b0b.tar.bz2
Show currently running program overview in Live Channel Select view.
Diffstat (limited to 'smarttv-client')
-rwxr-xr-xsmarttv-client/Javascript/Display.js28
-rwxr-xr-xsmarttv-client/config.xml2
2 files changed, 24 insertions, 6 deletions
diff --git a/smarttv-client/Javascript/Display.js b/smarttv-client/Javascript/Display.js
index 2e39f77..1406970 100755
--- a/smarttv-client/Javascript/Display.js
+++ b/smarttv-client/Javascript/Display.js
@@ -59,7 +59,7 @@ Display.init = function()
$(elm).append($("<div>").css({ "display": "inline-block", "width":"70%",
"overflow": "hidden", "text-overflow":"ellipsis", "white-space": "nowrap", "height": "14px"}));
$(elm).append($("<div>").css({ "display": "inline-block", "width":"5%",
- "height": "14px"}));
+ "overflow": "hidden", "text-overflow":"ellipsis", "white-space": "nowrap", "height": "14px"}));
}
var done = false;
@@ -272,9 +272,9 @@ Display.tuneLeftSide = function() {
res.w3 = "5%";
switch (Main.state) {
case Main.eLIVE:
- res.w1 = "10%";
- res.w2 = "80%";
- res.w3 = "5%";
+ res.w1 = "5%";
+ res.w2 = "25%";
+ res.w3 = "65%";
break;
case Main.eREC:
res.w1 = "20%";
@@ -582,7 +582,25 @@ Display.getDisplayTitle = function(item) {
else {
res.c1 = item.payload.num;
res.c2 = item.title;
- }
+ if(item.payload.start>0)
+ {
+ var epg_start_time=new Date(item.payload.start*1000);
+ var epg_start_hour=epg_start_time.getHours();
+ if(epg_start_hour<10)
+ {
+ epg_start_hour = "0"+epg_start_hour;
+ }
+ var epg_start_minute=epg_start_time.getMinutes();
+ if(epg_start_minute<10)
+ {
+ epg_start_minute = "0"+epg_start_minute;
+ }
+ res.c3 = epg_start_hour + ":" + epg_start_minute +" "+item.payload.prog;
+ }
+ else {
+ res.c3 = "NA:NA" +" "+item.payload.prog;
+ }
+ } // else
break;
case Main.eREC:
// Recordings
diff --git a/smarttv-client/config.xml b/smarttv-client/config.xml
index 9eddd2c..056a2bd 100755
--- a/smarttv-client/config.xml
+++ b/smarttv-client/config.xml
@@ -9,7 +9,7 @@
<BigThumbIcon>Images/icon/SmartTvWeb_115.png</BigThumbIcon>
<ListIcon>Images/icon/SmartTvWeb_85.png</ListIcon>
<BigListIcon>Images/icon/SmartTvWeb_95.png</BigListIcon>
- <ver>0.95.0721</ver>
+ <ver>0.95.0730</ver>
<mgrver></mgrver>
<fullwidget>y</fullwidget>
<movie>y</movie>