summaryrefslogtreecommitdiff
path: root/rhimport-dn
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2012-01-20 23:17:45 (GMT)
committerChristian Pointner <equinox@helsinki.at>2012-01-20 23:17:45 (GMT)
commit7fcaad9eadba6a3968c2b24526ce69db3d1b4de0 (patch)
treedd55b9407548da9ea976ef87580c6310d0e52a42 /rhimport-dn
parentb0e2a62cbc92cac628ff8d3565b2e310aad0c4c1 (diff)
simpler interface to pv_add_note
git-svn-id: https://svn.helsinki.at/rhimport/trunk@118 7c65635b-ec39-4f67-a626-873dbafdd612
Diffstat (limited to 'rhimport-dn')
-rwxr-xr-xrhimport-dn6
1 files changed, 2 insertions, 4 deletions
diff --git a/rhimport-dn b/rhimport-dn
index d712c9b..fa7607f 100755
--- a/rhimport-dn
+++ b/rhimport-dn
@@ -43,7 +43,7 @@ my $DB = "rivendell";
my $STAT_FILE = $ENV{'HOME'} . "/rhimport-dn.stat";
my $FILES_RSS_URL = "http://www.democracynow.org/podcast-stations.xml";
my $HEADLINES_RSS_URL = "http://www.democracynow.org/podcast.xml";
-my @PV_SCRIPT = ('/usr/bin/ssh', 'root@intranet', 'addnote', '111');
+my $PV_ID = '111';
binmode(STDIN, ":utf8");
binmode(STDOUT, ":utf8");
@@ -132,9 +132,7 @@ for my $entry ($headlines_feed->entries) {
next if($y ne $1);
print "summary:\n" . $sum_title . "\n\n" . $sum_text . "\n";
-
- push(@PV_SCRIPT, sprintf("%04d-%02d-%02d", $today[0], $today[1], $today[2]));
- rhimport::pv_add_note($sum_title, $sum_text, @PV_SCRIPT);
+ rhimport::pv_add_note($sum_title, $sum_text, $PV_ID, sprintf("%04d-%02d-%02d", $today[0], $today[1], $today[2]));
print "\n";
}
}