summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2014-06-04 12:30:20 (GMT)
committerChristian Pointner <equinox@helsinki.at>2014-06-04 12:30:20 (GMT)
commit647cfd1bb71afa6ba6ffc2a2f3caf1221673da6a (patch)
tree63ee9e07400b9335be4593829cda2dc53c19b899
parentf2d873b4137070ed332c1d3142b5c8d4a512248c (diff)
fixed stat file contens for o94n
removing comment at summary title
-rwxr-xr-xrhimport-o94n6
1 files changed, 3 insertions, 3 deletions
diff --git a/rhimport-o94n b/rhimport-o94n
index 5a7ed2e..6299bc1 100755
--- a/rhimport-o94n
+++ b/rhimport-o94n
@@ -130,11 +130,11 @@ for my $entry ($feed->entries) {
next unless (uc($ff->output_file) =~ $bdfile); # file not from correct day
my $sum_title = decode_entities($entry->title);
+ $sum_title =~ s/\s*\(ganze sendung\)//i;
my $sum_text = decode_entities($entry->content->body);
- my $current_stat = `cat $STAT_FILE`;
- my ($current_id, $current_file) = $current_stat =~ m/^(.*)\n(.*)/;
- if($current_id eq $id && $current_file eq $ff->output_file) {
+ my $current_file = `cat $STAT_FILE`;
+ if($current_file eq $ff->output_file) {
print "Already downloaded file of today\n";
$dbh->disconnect();
exit 0;