From 36edbc5062ef0f6b1d77e0b2aa3d5f806e85d8e3 Mon Sep 17 00:00:00 2001
From: Christian Pointner <equinox@helsinki.at>
Date: Fri, 10 Jun 2016 14:02:02 +0200
Subject: fixed last imported date in leitwolf importer


diff --git a/rhautoimport-fl b/rhautoimport-fl
index 8044b2d..368dc8f 100755
--- a/rhautoimport-fl
+++ b/rhautoimport-fl
@@ -118,6 +118,7 @@ my $uri = "";
 my $file = "";
 my $sum_title = "";
 my $sum_text = "";
+my $this_broadcast = $last_broadcast;
 
 my $i = 0;
 for my $entry ($feed->entries) {
@@ -152,6 +153,7 @@ for my $entry ($feed->entries) {
         exit 1;
       }
 
+      $this_broadcast = $idt;
       last;
     }
   }
@@ -204,7 +206,7 @@ close($fhs);
 
 unlink($LAST_FILE);
 open($fhs, '>', $LAST_FILE);
-print $fhs $last_broadcast->iso8601();
+print $fhs $this_broadcast->iso8601();
 close($fhs);
 
 exit $exit_code;
-- 
cgit v0.10.2