Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] master-timer, timer names in TITLE~SUBTITLE format
- To: vdr <vdr@linuxtv.org>
- Subject: [vdr] master-timer, timer names in TITLE~SUBTITLE format
- From: Richard Cieply <richard.cieply@web.de>
- Date: Fri, 01 Mar 2002 20:17:31 +0100
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii; format=flowed
- Delivered-To: mhonarc@limes.convergence.de
- Reply-to: vdr@linuxtv.org
- Sender: richard.cieply@web.de
- Sender: vdr-bounce@linuxtv.org
- User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22smp i686; en-US; m18) Gecko/20010110 Netscape6/6.5
Hi list,
as the new formula 1 season starts soon I used master-timer to record
all formula 1 on RTL ( yes I know, it' crazy ;-> )
Unfortunetly RTL has chosen a ':' in the title like "Formel I: Rennen"
and so on.
The epg bugfix in parseepgdata.pl convertst this to title = "Formel I"
and subtitle = "Rennen".
This seems feasible to me.
One could remove this bugfix in such that the above title results in a
timer with title = "Formel I: Das Rennen".
But however transfertimer.pl passes the timers via SVDRP and there the
':' is used as a token delimiter -> the above timer is programmed with
the title "Formel I".
This results in multiple "Formel I" (with no addition sub) timer entries
so it's cumbersome to see what the recordings really are.
Since I'm very lazy I don't want to programm multiple entries in
torecord each maching a "Formel I" subcategory like "Rennen",
"Qualifying" and so on. I would like to program timers with the
TITLE/SUBTITLE scheme like vdr does.
Therefor I use the following scheme (it's quite quick and dirty):
In to record I define "Timertitle" = TITLE~SUB.
I modified processprogram.pl to check if Timertitle was set in torecord
and if it is equal to "TITLE~SUB".
If so the timertitle is set to TITLE~SUBTITLE giving the recording a
directory structure like "Formel I"->"Rennen".
If subtitle is not set in the epg-data then timertitle is simply set to
TITLE.
here is the patch (2nd chunk):
--- processprogram.pl.bak Fri Mar 1 16:26:09 2002
+++ processprogram.pl Fri Mar 1 19:30:50 2002
@@ -74,7 +74,7 @@
$rPEntry = $$rProgram{$title}{$channel}{$time};
# If already tested, or done, or blacklisted then next
- if ( $$rPEntry{torecord} || $$rPEntry{done} ||
$$rPEntry{deepblack} == 2) {
+ if ( $$rPEntry{torecord} || $$rPEntry{done} ||
($$rPEntry{deepblack} && ($$rPEntry{deepblack} == 2))) {
next;
}
@@ -107,7 +107,13 @@
# What Title to use for the timer
if ($$rToEntry{timertitle}) {
- $timertitle = $$rToEntry{timertitle}
+ if ($$rToEntry{timertitle} =~ /^TITLE~SUB$/) {
+ $timertitle = $title;
+ $timertitle .= "~" . $$rPEntry{subtitle} if
($$rPEntry{subtitle});
+ }
+ else {
+ $timertitle = $$rToEntry{timertitle}
+ }
}
else {
$timertitle = $title;
The first chunk only removes some warnings during processing.
Have fun.
Richard
Home |
Main Index |
Thread Index