diff --git a/source/net/filebot/format/ExpressionFormatFunctions.java b/source/net/filebot/format/ExpressionFormatFunctions.java index 3c013e2f..52b1e1ec 100644 --- a/source/net/filebot/format/ExpressionFormatFunctions.java +++ b/source/net/filebot/format/ExpressionFormatFunctions.java @@ -91,9 +91,12 @@ public class ExpressionFormatFunctions { public static Map csv(String path) throws IOException { Map map = new LinkedHashMap(); for (String line : Files.readAllLines(Paths.get(path), Charset.forName("UTF-8"))) { - String[] field = line.split(";", 2); - if (field.length >= 2) { - map.put(field[0], field[1]); + for (String delim : new String[] { "\t", ";" }) { + String[] field = line.split(delim, 2); + if (field.length >= 2) { + map.put(field[0], field[1]); + break; + } } } return map;