From 4fcf700dab3733f65b95bad1d96fd8daa7de28ab Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Sun, 16 Oct 2016 05:26:24 +0200 Subject: [PATCH] Remove quotation marks on tags with whitespace --- source/tagproviders/dublincore.d | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/source/tagproviders/dublincore.d b/source/tagproviders/dublincore.d index 1395aa9..e6c1eb9 100644 --- a/source/tagproviders/dublincore.d +++ b/source/tagproviders/dublincore.d @@ -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; } } +