Gregoire Favre wrote:
Hello,
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; + } + else + { + lastDump = st.st_mtime; + } if (now - lastCleanup > 3600 && ptm->tm_hour == 5) { cMutexLock MutexLock(&schedulesMutex);
Bis denn