X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FSpot.pm;h=4b0e7c72929ba3822afe2bbc0c3faebc39b709ed;hb=bcf2892aa7f3c9957ee61365a6e032dd93044834;hp=dc63dbff42c1c2ab1309d843107e10ce6bbff4ae;hpb=f726c14c2f603c02eabecc4526e588354a3a7e0b;p=spider.git diff --git a/perl/Spot.pm b/perl/Spot.pm index dc63dbff..4b0e7c72 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -17,6 +17,7 @@ use Julian; use Prefix; use DXDupe; use Data::Dumper; +use QSL; use strict; @@ -160,6 +161,10 @@ sub add } else { $vhfspots++; } + if ($_[3] =~ /(?:QSL|VIA)/i) { + my $q = QSL::get($_[1]) || new QSL $_[1]; + $q->update($_[3], $_[2], $_[4]); + } } # search the spot database for records based on the field no and an expression