X-Git-Url: https://git.sesse.net/?p=pr0n;a=blobdiff_plain;f=perl%2FSesse%2Fpr0n%2FCommon.pm;h=6bcc538307f1fe9b4dbcab61dc50ac8858157092;hp=8fe17d738f7b9300dda864abe45e6de6bd17a0ea;hb=1fd1cd288c346694970ba7f71677def55c403425;hpb=0da0f89891d31e6848c08d003753d387cf6bf8a9 diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index 8fe17d7..6bcc538 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -393,7 +393,12 @@ sub make_infobox { push @lines, "$1-$2-$3 $4:$5"; } - push @lines, $info->{'Model'} if (defined($info->{'Model'})); + if (defined($info->{'Model'})) { + my $model = $info->{'Model'}; + $model =~ s/^\s+//; + $model =~ s/\s+$//; + push @lines, $model; + } # classic fields if (defined($info->{'FocalLength'}) && $info->{'FocalLength'} =~ /^(\d+)(?:\.\d+)?(?:mm)?$/) {