From patchwork Thu Dec 8 20:07:51 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schniedermeyer X-Patchwork-Id: 12111 Received: from dsw2k3.info ([195.71.86.227]) by www.linuxtv.org with esmtp (Exim 4.50) id 1EkS3W-00020o-BS for vdr@linuxtv.org; Thu, 08 Dec 2005 21:07:54 +0100 Received: from localhost (localhost [127.0.0.1]) by dsw2k3.info (Postfix) with ESMTP id CF78B62A88 for ; Thu, 8 Dec 2005 21:07:53 +0100 (CET) Received: from dsw2k3.info ([127.0.0.1]) by localhost (clit [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17582-03 for ; Thu, 8 Dec 2005 21:07:52 +0100 (CET) Received: from [192.168.100.3] (p548B3BA8.dip0.t-ipconnect.de [84.139.59.168]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by dsw2k3.info (Postfix) with ESMTP id CFD6D62A3D for ; Thu, 8 Dec 2005 21:07:51 +0100 (CET) Message-ID: <43989297.6040306@citd.de> Date: Thu, 08 Dec 2005 21:07:51 +0100 From: Matthias Schniedermeyer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217 Mnenhy/0.7 X-Accept-Language: en-us, en MIME-Version: 1.0 To: VDR Mailing List Subject: Re: [vdr] A way to force writing the epg.data ? References: <20051208170812.GA18334@gmail.com> In-Reply-To: <20051208170812.GA18334@gmail.com> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dsw2k3.info X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 20:07:54 -0000 Status: O X-Status: X-Keywords: X-UID: 6540 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: Bis denn 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);