From 91249005d17919b393761d6c755ab686186d94e1 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Fri, 9 Nov 2012 22:48:10 +0100 Subject: [PATCH] Try XMP-dc:Subject if Keywords does not work. Patch from xim. --- perl/Sesse/pr0n/Common.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index 559d633..7375c3c 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -308,6 +308,10 @@ sub update_image_info { # Tags my @tags = $exiftool->GetValue('Keywords', 'ValueConv'); + if (scalar @tags == 0) { + # This is XMP-dc:Subject, an RDF bag of tags. + @tags = $exiftool->GetValue('Subject', 'ValueConv'); + } $dbh->do('DELETE FROM tags WHERE image=?', undef, $id) or die "Couldn't delete old tag information in SQL: $!"; -- 2.39.2