[vdr] A way to force writing the epg.data ?
ms at citd.de
Thu Dec 8 21:07:51 CET 2005
Gregoire Favre wrote:
> is there a way (maybe with SVDRP) to force VDR to write the epg.data to
> the disk in order to be able to use mastertimer on it ?
> Thank you very much,
Personally i've patched VDR ever since i've started writing Master-Timer
nearly 5 years ago.
The patch 'shifts' the 10 minutes writing to:
the epg.data-file has to be at least 10 minutes out of time
After that you just have to make the epg.data file a bit older and VDR
updates it the next moment.
touch -r /bin/bash /video/video0/epg.data
Here's the patch:
diff -Nur vdr-1.2.6a/eit.c vdr-1.2.6/eit.c
--- vdr-1.2.6a/eit.c Sun Oct 12 13:05:42 2003
+++ vdr-1.2.6/eit.c Fri Aug 6 11:28:13 2004
@@ -1194,6 +1194,15 @@
time_t now = time(NULL);
struct tm tm_r;
struct tm *ptm = localtime_r(&now, &tm_r);
+ struct stat st;
+ if (stat (AddDirectory(VideoDirectory, "epg.data"),&st) != 0)
+ lastDump = 0;
+ lastDump = st.st_mtime;
if (now - lastCleanup > 3600 && ptm->tm_hour == 5)
Real Programmers consider "what you see is what you get" to be just as
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated,
cryptic, powerful, unforgiving, dangerous.
More information about the vdr