Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
smxi committed Oct 24, 2022
1 parent 8535a01 commit 3bd49b1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions acxi
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ sub prefill_data {
my ($b_top_block,$info) = (1,{});
my $data = InfoFix::open_info_file('prefill');
my $counter = 0;
my $fields = 'Artiste?|Band|City|Club|Country|Date|Festival|Location|State|Lieu|Taper|Venue|Ville';
my $fields = 'Artiste?s?|Band|City|Club|Country|Date|Festival|Location|State|Lieu|Taper|Venue|Ville';
foreach (@$data){
$counter++;
$_ = main::trimmer($_);
Expand Down Expand Up @@ -933,7 +933,7 @@ sub prefill_data {
}
}
else {
if ($field_name =~ /^(Artiste?|Band)$/i){
if ($field_name =~ /^(Artiste?s?|Band)$/i){
$info->{'artist'} = $field_value;
}
elsif ($field_name =~ /^(Club|Festival|Lieu|Venue)$/i){
Expand All @@ -945,7 +945,10 @@ sub prefill_data {
else {
$info->{'location'} = $field_value;
}
$info->{'venue'} = $field_value;
# we don't want to use venue if it's a full string: club,city,state
if ($field_value !~ /,/){
$info->{'venue'} = $field_value;
}
}
elsif ($field_name =~ /^(City|Country|Location|State|Ville)$/i){
if ($info->{'location'}){
Expand Down

0 comments on commit 3bd49b1

Please sign in to comment.