A way to force writing the epg.data ?

Message ID E1ElWJE-0008Qo-00@bigred.inka.de
State New
Headers

Commit Message

Olaf Titz Dec. 11, 2005, 6:52 p.m. UTC
  > > Great, I have to look on how to apply such a patch against vdr-1.3.37.
>
> A grep for epg.data should quickly unravel where VDR looks if the 10
> minutes are over.

This one should work:


=== end of patch ===

Olaf
  

Patch

--- vdr-1.3.37/epg.c~        2005-11-11 14:37:43.000000000 +0100
+++ vdr-1.3.37/epg.c    2005-12-09 20:54:31.000000000 +0100
@@ -882,6 +882,12 @@ 
      lastCleanup = now;
      ReportEpgBugFixStats(true);
      }
+  struct stat st;
+  if (!epgDataFileName || stat (epgDataFileName,&st) != 0) {
+     lastDump = 0;
+  } else {
+     lastDump = st.st_mtime;
+  }
   if (epgDataFileName && now - lastDump > 600) {
      cSafeFile f(epgDataFileName);
      if (f.Open()) {