summaryrefslogtreecommitdiff
path: root/summary2info.pl
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-09-17 09:20:31 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-09-17 09:20:31 +0200
commit5147d8abbc146ac2c5cc0bfeb7577542221d605a (patch)
tree1504c465aa5fbdc62e3051975a2d7533e6d4b8b7 /summary2info.pl
parent791fe6c40e8425535198c6b82ca1af2a0f8ee98e (diff)
downloadvdr-5147d8abbc146ac2c5cc0bfeb7577542221d605a.tar.gz
vdr-5147d8abbc146ac2c5cc0bfeb7577542221d605a.tar.bz2
Fixed converting arbitrarily formatted summary.vdr files
Diffstat (limited to 'summary2info.pl')
-rwxr-xr-xsummary2info.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/summary2info.pl b/summary2info.pl
index 42906774..5d68d794 100755
--- a/summary2info.pl
+++ b/summary2info.pl
@@ -10,7 +10,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: summary2info.pl 1.4 2005/09/10 12:40:40 kls Exp $
+# $Id: summary2info.pl 1.5 2005/09/17 09:20:31 kls Exp $
$VideoDir = $ARGV[0] || die "please provide the name of the video directory\n";
@@ -33,11 +33,11 @@ for $SummaryFile (@SummaryFiles) {
}
}
close(F);
- if ($line == 1) {
+ if (!$data[2]) {
$data[2] = $data[1];
$data[1] = "";
}
- elsif ($line == 2) {
+ elsif ($data[1] && $data[2]) {
# if line 1 is too long, it can't be the short text,
# so assume the short text is missing and concatenate
# line 1 and line 2 to be the long text: