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; } } +