summaryrefslogtreecommitdiff
path: root/rhimport-zf
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport-zf')
-rwxr-xr-xrhimport-zf6
1 files changed, 5 insertions, 1 deletions
diff --git a/rhimport-zf b/rhimport-zf
index 7ebfa5e..19d34df 100755
--- a/rhimport-zf
+++ b/rhimport-zf
@@ -123,7 +123,11 @@ for my $entry ($feed->entries) {
print "summary:\n" . $sum_title . "\n\n" . $sum_text . "\n";
- rhimport::pv_add_note($sum_title, $sum_text, $PV_ID, sprintf("%04d-%02d-%02d", $broadcast_day[0], $broadcast_day[1], $broadcast_day[2]), "1");
+ if($#ARGV >= 0 && $ARGV[0] eq 'nopv') {
+ print "not adding note to PV\n";
+ } else {
+ rhimport::pv_add_note($sum_title, $sum_text, $PV_ID, sprintf("%04d-%02d-%02d", $broadcast_day[0], $broadcast_day[1], $broadcast_day[2]), "1");
+ }
print "\n";
unlink($NOTE_FILE);