diff options
author | Christian Pointner <equinox@helsinki.at> | 2013-03-14 17:57:27 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2013-03-14 17:57:27 (GMT) |
commit | 5832d03e544f4d5483218f60f0e611dab6150435 (patch) | |
tree | 275195d6ca7ac438ce691e06d8a21af8f9c0dc0a | |
parent | f8894cb574e88ae3495f914b78c2c7653d73b3e5 (diff) |
added command line option for PV notes
-rwxr-xr-x | rhimport-zf | 6 |
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); |