summaryrefslogtreecommitdiff
path: root/epg2html.pl
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-02-22 13:33:20 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-02-22 13:33:20 +0100
commit8e616636526b9d7f7530d96dcb69efa1d9e011d2 (patch)
tree1c57f6a9592ba1f3a98f262655c5b3701ca1b523 /epg2html.pl
parent45eac6d94694aa9081bdd0e06794942c49818ff1 (diff)
downloadvdr-8e616636526b9d7f7530d96dcb69efa1d9e011d2.tar.gz
vdr-8e616636526b9d7f7530d96dcb69efa1d9e011d2.tar.bz2
Implemented handling the VPS timestamps
Diffstat (limited to 'epg2html.pl')
-rwxr-xr-xepg2html.pl10
1 files changed, 6 insertions, 4 deletions
diff --git a/epg2html.pl b/epg2html.pl
index 6b7b8c94..c6e6f9cf 100755
--- a/epg2html.pl
+++ b/epg2html.pl
@@ -12,7 +12,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: epg2html.pl 1.4 2002/05/30 09:46:46 kls Exp $
+# $Id: epg2html.pl 1.5 2004/02/22 13:18:27 kls Exp $
@Index = ();
@@ -47,13 +47,14 @@ while (<>) {
while (<>) {
if (/^E (.*?) (.*?) ([^ ]*)/) {
(my $Time, $Duration) = ($2, $3);
- my $Title = "", $Subtitle = "", $Description = "";
+ my $Title = "", $Subtitle = "", $Description = "", $Vps = 0;
while (<>) {
if (/^T (.*)/) { $Title = Tags($1); }
elsif (/^S (.*)/) { $Subtitle = Tags($1); }
elsif (/^D (.*)/) { $Description = Tags($1); }
+ elsif (/^V (.*)/) { $Vps = $1; }
elsif (/^e/) {
- $Events{$Time} = [($Duration, $Title, $Subtitle, $Description)];
+ $Events{$Time} = [($Duration, $Title, $Subtitle, $Description, $Vps)];
last;
}
}
@@ -62,7 +63,7 @@ while (<>) {
my @Schedule = ();
my $Day = "";
for $t (sort keys %Events) {
- (my $Duration, $Title, $Subtitle, $Description) = @{$Events{$t}};
+ (my $Duration, $Title, $Subtitle, $Description, $Vps) = @{$Events{$t}};
my $d = GetDay($t);
if ($d ne $Day) {
push(@Schedule, "</table>\n") if ($Day && @Schedule);
@@ -73,6 +74,7 @@ while (<>) {
my $Entry = $Title;
$Entry .= "<br><i>$Subtitle</i>" if $Subtitle;
$Entry .= "<br>$Description" if $Description;
+ $Entry .= "<br>(VPS = " . scalar localtime($Vps) . ")" if $Vps && $Vps != $t;
push(@Schedule, "<tr><td valign=top>" . GetTime($t) . "</td><td>$Entry</td></tr>\n");
}
push(@Schedule, "</table>\n") if (@Schedule);