From patchwork Mon Jul 18 11:53:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave P X-Patchwork-Id: 12895 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.69) (envelope-from ) id 1QimOS-0004FH-0W for vdr@linuxtv.org; Mon, 18 Jul 2011 13:53:49 +0200 X-tubIT-Incoming-IP: 217.155.3.209 Received: from sodom.pickles.me.uk ([217.155.3.209]) by mail.tu-berlin.de (exim-4.75/mailfrontend-4) with esmtps [TLSv1:AES256-SHA:256] for id 1QimOR-0004E7-Bj; Mon, 18 Jul 2011 13:53:47 +0200 Received: from sodom.pickles.me.uk (sodom.pickles.me.uk [127.0.0.1]) by sodom.pickles.me.uk (8.14.4/8.14.4) with ESMTP id p6IBrjqL000358 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 18 Jul 2011 12:53:45 +0100 Received: (from root@localhost) by sodom.pickles.me.uk (8.14.4/8.14.4/Submit) id p6IBrjOH000356 for vdr@linuxtv.org; Mon, 18 Jul 2011 12:53:45 +0100 From: Dave To: vdr@linuxtv.org Date: Mon, 18 Jul 2011 12:53:45 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.36.2-desktop-2mnb; KDE/4.4.5; x86_64; ; ) MIME-Version: 1.0 Message-Id: <201107181253.45597.vdr@pickles.me.uk> X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.7.18.114215 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' FROM_NAME_ONE_WORD 0.05, MIME_TEXT_ONLY_MP_MIXED 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_3000_3999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_MIXED 0, __HAS_MSGID 0, __INT_PROD_TV 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_MAILTO 0, __URI_NS , __USER_AGENT 0' X-LSpam-Score: -5.0 (-----) X-LSpam-Report: No, score=-5.0 required=5.0 tests=AWL=1.625, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4 autolearn=ham Subject: [vdr] VPS fallback patch X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.11 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: Mon, 18 Jul 2011 11:53:49 -0000 Status: O X-Status: X-Keywords: X-UID: 24910 For some time (at least since 2008) Mandriva Linux have been including the attached patch in the version of vdr shipped with their distribution. It allows timers to be triggered directly by the Now/Next data in the EIT provided that a new parameter is set in the config file. Looking back in the mailing list archives I see the question of including this feature in vdr is an old one; see for example: http://www.linuxtv.org/pipermail/vdr/2005-August/003975.html However I wonder if the time is now right to reconsider? In the UK an accurate Now & Next EIT is provided on DVB-T as part of the Freeview Plus (aka TV- Anytime) service, with the data being directly derived from the broadcasters' playout systems. I have been running vdr with this patch for two years and have never missed a recording due to incorrect information. It was really useful during the recent Wimbledon tournament when many programmes ran late due to live coverage of the tennis. Dave Index: vdr-1.6.0/config.c =================================================================== --- vdr-1.6.0/config.c +++ vdr-1.6.0/config.c 2008-04-15 14:48:30.000000000 +0300 @@ -255,6 +255,7 @@ UseSubtitle = 1; UseVps = 0; VpsMargin = 120; + RsVpsFallback = 0; RecordingDirs = 1; VideoDisplayFormat = 1; VideoFormat = 0; Index: vdr-1.6.0/config.h =================================================================== --- vdr-1.6.0/config.h +++ vdr-1.6.0/config.h 2008-04-15 14:48:30.000000000 +0300 @@ -237,6 +237,7 @@ int UseSubtitle; int UseVps; int VpsMargin; + int RsVpsFallback; int RecordingDirs; int VideoDisplayFormat; int VideoFormat; Index: vdr-1.6.0/menu.c =================================================================== --- vdr-1.6.0/menu.c +++ vdr-1.6.0/menu.c 2008-04-15 14:48:30.000000000 +0300 @@ -2753,6 +2753,7 @@ Add(new cMenuEditBoolItem(tr("Setup.Recording$Use episode name"), &data.UseSubtitle)); Add(new cMenuEditBoolItem(tr("Setup.Recording$Use VPS"), &data.UseVps)); Add(new cMenuEditIntItem( tr("Setup.Recording$VPS margin (s)"), &data.VpsMargin, 0)); + Add(new cMenuEditBoolItem(tr("Setup.Recording$Use running status as VPS fallback"), &data.RsVpsFallback)); Add(new cMenuEditBoolItem(tr("Setup.Recording$Mark instant recording"), &data.MarkInstantRecord)); Add(new cMenuEditStrItem( tr("Setup.Recording$Name instant recording"), data.NameInstantRecord, sizeof(data.NameInstantRecord))); Add(new cMenuEditIntItem( tr("Setup.Recording$Instant rec. time (min)"), &data.InstantRecordTime, 1, MAXINSTANTRECTIME)); Index: vdr-1.6.0/timers.c =================================================================== --- vdr-1.6.0/timers.c +++ vdr-1.6.0/timers.c 2008-04-15 14:48:30.000000000 +0300 @@ -412,7 +412,7 @@ } if (HasFlags(tfActive)) { - if (HasFlags(tfVps) && event && event->Vps()) { + if (HasFlags(tfVps) && event && (Setup.RsVpsFallback || event->Vps())) { if (Margin || !Directly) { startTime = event->StartTime(); stopTime = event->EndTime();