From 647cfd1bb71afa6ba6ffc2a2f3caf1221673da6a Mon Sep 17 00:00:00 2001
From: Christian Pointner <equinox@helsinki.at>
Date: Wed, 4 Jun 2014 12:30:20 +0000
Subject: fixed stat file contens for o94n removing comment at summary title


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;
-- 
cgit v0.10.2