Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Setup EPG linger time, useful when programming is late




  Hi!  I have been using this patch for some time and I think it is
useful.  Often programming on many channels is a few minutes late, and
when you would like to check the EPG information on a show that is
actually running but is on overtime, VDR does not allow that.  Also
sometimes it is nice to check the description of the show that you just
missed.

  This setup item in EPG setup menu allows to set a linger time, how many
minutes the EPG information is retained on program guide listnings after
the show should have ended.  This does not affect the channel number
display when you press OK on live view, only the listning in EPG menu.

  This patch is also available at http://www.iki.fi/hyvatti/dvb/ . I
included also some translations to Finnish there.  You might want to chec=
k
and correct the translations to German and Swedish on that EPG Linger tim=
e
if you are a native speaker of those languages :-) as I am not.

diff -rubB old/vdr-1.1.29/config.c vdr-1.1.29/config.c
--- old/vdr-1.1.29/config.c	Sat Apr 12 12:37:48 2003
+++ vdr-1.1.29/config.c	Mon Apr 28 10:34:29 2003
@@ -261,6 +261,7 @@
   MarginStop =3D 10;
   EPGScanTimeout =3D 5;
   EPGBugfixLevel =3D 2;
+  EPGLinger =3D 0;
   SVDRPTimeout =3D 300;
   SortTimers =3D 1;
   PrimaryLimit =3D 0;
@@ -410,6 +411,7 @@
   else if (!strcasecmp(Name, "MarginStop"))          MarginStop         =
=3D atoi(Value);
   else if (!strcasecmp(Name, "EPGScanTimeout"))      EPGScanTimeout     =
=3D atoi(Value);
   else if (!strcasecmp(Name, "EPGBugfixLevel"))      EPGBugfixLevel     =
=3D atoi(Value);
+  else if (!strcasecmp(Name, "EPGLinger"))           EPGLinger          =
=3D atoi(Value);
   else if (!strcasecmp(Name, "SVDRPTimeout"))        SVDRPTimeout       =
=3D atoi(Value);
   else if (!strcasecmp(Name, "SortTimers"))          SortTimers         =
=3D atoi(Value);
   else if (!strcasecmp(Name, "PrimaryLimit"))        PrimaryLimit       =
=3D atoi(Value);
@@ -457,6 +459,7 @@
   Store("MarginStop",         MarginStop);
   Store("EPGScanTimeout",     EPGScanTimeout);
   Store("EPGBugfixLevel",     EPGBugfixLevel);
+  Store("EPGLinger",          EPGLinger);
   Store("SVDRPTimeout",       SVDRPTimeout);
   Store("SortTimers",         SortTimers);
   Store("PrimaryLimit",       PrimaryLimit);
diff -rubB old/vdr-1.1.29/config.h vdr-1.1.29/config.h
--- old/vdr-1.1.29/config.h	Mon Apr 21 19:23:15 2003
+++ vdr-1.1.29/config.h	Mon Apr 28 10:34:29 2003
@@ -213,6 +213,7 @@
   int MarginStart, MarginStop;
   int EPGScanTimeout;
   int EPGBugfixLevel;
+  int EPGLinger;
   int SVDRPTimeout;
   int SortTimers;
   int PrimaryLimit;
diff -rubB old/vdr-1.1.29/eit.c vdr-1.1.29/eit.c
--- old/vdr-1.1.29/eit.c	Sun Apr 27 17:41:36 2003
+++ vdr-1.1.29/eit.c	Mon Apr 28 10:34:29 2003
@@ -738,7 +738,7 @@
       pEvent =3D Events.Get(a);
       if (pEvent =3D=3D NULL)
          break;
-      if (pEvent->GetTime() + pEvent->GetDuration() + 3600 < tTime) // a=
dding one hour for safety
+      if (pEvent->GetTime() + pEvent->GetDuration() + Setup.EPGLinger * =
60 + 3600 < tTime) // adding one hour for safety
       {
          Events.Del(pEvent);
          a--;
diff -rubB old/vdr-1.1.29/i18n.c vdr-1.1.29/i18n.c
--- old/vdr-1.1.29/i18n.c	Mon Apr 21 17:05:17 2003
+++ vdr-1.1.29/i18n.c	Mon Apr 28 10:34:29 2003
@@ -682,13 +682,13 @@
   },
   { "Reset",
     "Reset",
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
+    "",//TODO Slovenski
+    "",//TODO Italiano
+    "",//TODO Nederlands
+    "",//TODO Portugu=EAs
+    "",//TODO Fran=E7ais
+    "",//TODO Norsk
+    "Alusta",
     "",//TODO
     "",//TODO
     "Epanafora",
@@ -962,7 +962,7 @@
     "Srate",
     "Fr=E9q. Symbole",
     "Srate",
-    "Srate",
+    "Symbolinopeus",
     "Srate",
     "Srate",
     "Srate",
@@ -1502,13 +1502,13 @@
   },
   { "Channel settings are not unique!",
     "Kanaleinstellungen sind nicht eindeutig!",
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
+    "",//TODO Slovenski
+    "",//TODO Italiano
+    "",//TODO Nederlands
+    "",//TODO Portugu=EAs
+    "",//TODO Fran=E7ais
+    "",//TODO Norsk
+    "N=E4ill=E4 asetuksilla on jo kanava!",
     "",//TODO
     "",//TODO
     "Ta kanalia stin lista den ine monadika!",
@@ -1614,13 +1614,13 @@
   },
   { "Can't open CAM menu!",
     "CAM-Men=FC kann nicht ge=F6ffnet werden!",
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
+    "",//TODO Slovenski
+    "",//TODO Italiano
+    "",//TODO Nederlands
+    "",//TODO Portugu=EAs
+    "",//TODO Fran=E7ais
+    "",//TODO Norsk
+    "CAM-valikkoon ei p=E4=E4se!",
     "",//TODO
     "",//TODO
     "Den mpori na aniksi to CAM menou!",
@@ -1630,13 +1630,13 @@
   },
   { "Can't reset CAM!",
     "CAM-Reset fehlgeschlagen!",
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
+    "",//TODO Slovenski
+    "",//TODO Italiano
+    "",//TODO Nederlands
+    "",//TODO Portugu=EAs
+    "",//TODO Fran=E7ais
+    "",//TODO Norsk
+    "CAM ei alustettavissa",
     "",//TODO
     "",//TODO
     "Adinato na gini epanafora sto CAM",
@@ -1646,13 +1646,13 @@
   },
   { "CAM has been reset",
     "CAM wurde zur=FCckgesetzt!",
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
-    "",//TODO
+    "",//TODO Slovenski
+    "",//TODO Italiano
+    "",//TODO Nederlands
+    "",//TODO Portugu=EAs
+    "",//TODO Fran=E7ais
+    "",//TODO Norsk
+    "CAM alustettu",
     "",//TODO
     "",//TODO
     "Sto CAM egine apanafora",
@@ -2014,6 +2014,22 @@
     "Nivel corectie EPG",
     "EPG hibaelh=E1r=EDt=E1s",
   },
+  { "Setup.EPG$Event linger time (min)",
+    "Alten Info anzeigen (min)",// TODO Deutsch
+    "",// TODO Slovenski
+    "",// TODO Italiano
+    "",// TODO Nederlands
+    "",// TODO Portugu=EAs
+    "",// TODO Fran=E7ais
+    "",// TODO Norsk
+    "Vanha tieto n=E4kyy (min)",
+    "",// TODO Polski
+    "",// TODO Espa=F1ol
+    "",// TODO Ellinika
+    "Visa gammal info (min)",// TODO Svenska
+    "",// TODO Romaneste
+    "",// TODO Magyar
+  },
   { "Setup.EPG$Set system time",
     "Systemzeit stellen",
     "Nastavi sistemski cas",
diff -rubB old/vdr-1.1.29/menu.c vdr-1.1.29/menu.c
--- old/vdr-1.1.29/menu.c	Sun Apr 27 15:50:31 2003
+++ vdr-1.1.29/menu.c	Mon Apr 28 10:34:29 2003
@@ -1369,7 +1369,7 @@
         int numreal =3D 0;
         for (int a =3D 0; a < num; a++) {
             const cEventInfo *EventInfo =3D Schedule->GetEventNumber(a);
-            if (EventInfo->GetTime() + EventInfo->GetDuration() > now)
+            if (EventInfo->GetTime() + EventInfo->GetDuration() + Setup.=
EPGLinger * 60 > now)
                pArray[numreal++] =3D EventInfo;
             }

@@ -2003,6 +2003,7 @@
   Add(new cMenuEditIntItem( tr("Setup.EPG$EPG bugfix level"),          &=
data.EPGBugfixLevel, 0, MAXEPGBUGFIXLEVEL));
   Add(new cMenuEditBoolItem(tr("Setup.EPG$Set system time"),           &=
data.SetSystemTime));
   Add(new cMenuEditTranItem(tr("Setup.EPG$Use time from transponder"), &=
data.TimeTransponder));
+  Add(new cMenuEditIntItem( tr("Setup.EPG$Event linger time (min)"),   &=
data.EPGLinger));
 }

 // --- cMenuSetupDVB ---------------------------------------------------=
------

--=20
Foreca Ltd                                           Jaakko.Hyvatti@forec=
a.com
Pursimiehenkatu 29-31 B, FIN-00150 Helsinki, Finland     http://www.forec=
a.com


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index