Remove quotation marks on tags with whitespace

This commit is contained in:
Les De Ridder 2016-10-16 05:26:24 +02:00
parent de994ffaef
commit 4fcf700dab
No known key found for this signature in database
GPG Key ID: 5EC132DFA85DB372
1 changed files with 2 additions and 14 deletions

View File

@ -30,20 +30,7 @@ class DublinCoreTagProvider : TagProvider
auto exiftool = execute(["exiftool", "-b", "-" ~ element, path]);
auto rawData = exiftool.output;
string[] data;
foreach(line; splitLines(rawData))
{
if(indexOf(line, ' ') == -1)
{
data ~= line;
}
else
{
data ~= '"' ~ line ~ '"';
}
}
return data;
return splitLines(rawData);
}
@property
@ -52,3 +39,4 @@ class DublinCoreTagProvider : TagProvider
return true;
}
}