From patchwork Tue Jun 14 22:16:30 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schniedermeyer X-Patchwork-Id: 11915 Received: from dsw2k3.info ([195.71.86.227]) by www.linuxtv.org with esmtp (Exim 4.34) id 1DiJhx-00034b-LP for vdr@linuxtv.org; Wed, 15 Jun 2005 00:16:33 +0200 Received: from localhost (localhost [127.0.0.1]) by dsw2k3.info (Postfix) with ESMTP id 0038062A31 for ; Wed, 15 Jun 2005 00:16:32 +0200 (CEST) Received: from dsw2k3.info ([127.0.0.1]) by localhost (clit [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27391-01 for ; Wed, 15 Jun 2005 00:16:31 +0200 (CEST) Received: from [192.168.100.3] (p548B2B9B.dip0.t-ipconnect.de [84.139.43.155]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by dsw2k3.info (Postfix) with ESMTP id 47FD062A8F for ; Wed, 15 Jun 2005 00:16:31 +0200 (CEST) Message-ID: <42AF573E.7090602@citd.de> Date: Wed, 15 Jun 2005 00:16:30 +0200 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: Klaus Schmidinger's VDR Subject: Re: [vdr] master-timer list of usable channels ? References: <20050614155900.GB8569@gmail.com> <42AF14C2.5070703@citd.de> In-Reply-To: <42AF14C2.5070703@citd.de> 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: Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2005 22:16:33 -0000 Status: O X-Status: X-Keywords: X-UID: 3042 Matthias Schniedermeyer wrote: > Gregoire Favre wrote: > >> Would it be possible to tell him to "only" use the channels 1 to 123 for >> example, as autopid could add some "not usable" channels after those ? > > Currently not. > I've added a "highest-channel-number"-config-option to my todo-list. I've taken the time to implemented that feature. .diff attached. Bis denn Index: sample/config =================================================================== --- sample/config (revision 203) +++ sample/config (working copy) @@ -19,6 +19,9 @@ #recorddir = /video recorddir = /video/video0 +# Highester channel-number (including) available for recording, 0=no restrictions +highest_channel_number = 0 + # Use fast or "safe" method for sorting the timers in VDR (This option is for sorttimer.pl) SortFast = 1 Index: timer.pl =================================================================== --- timer.pl (revision 222) +++ timer.pl (working copy) @@ -136,6 +136,12 @@ next; } + # Check if timers is within allowed channel-number-range + if ($$rConfig{highest_channel_number} && ($$rChannels{rev}{$channel}{instance}{$num} > $$rConfig{highest_channel_number})) { + print "Channel: $channel(" . $$rChannels{rev}{$channel}{short_name} . ") is out of allowed channel-number-range: No. " . $$rChannels{rev}{$channel}{instance}{$num} . "\n" if ($$rConfig{debug} & 64); + next; + } + foreach $time2 (sort keys %{$$rTimer{$num}}) { foreach $channel2 (sort keys %{$$rTimer{$num}{$time2}}) { if (($channel eq $channel2) || $$rConfig{preventdouble}) { Index: init.pl =================================================================== --- init.pl (revision 211) +++ init.pl (working copy) @@ -353,6 +353,7 @@ my $conf = "(" . join ("|", ( "defaultlifetime", "defaultprio", + "highest_channel_number", "human_info", "joinnameifequal", "jointimers",