X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fsupported%2FInfoText.java;h=365c51a77377c2bd60f73cee26e576216b2d8e67;hb=7de079f11e29028d226132d84b4fef3870453599;hp=a627714a057eadf781c52558f249664756360912;hpb=08fe2e33007063e30fe22dc1d290f8afaa18eb1d;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/supported/InfoText.java b/src/be/nikiroo/fanfix/supported/InfoText.java index a627714..365c51a 100644 --- a/src/be/nikiroo/fanfix/supported/InfoText.java +++ b/src/be/nikiroo/fanfix/supported/InfoText.java @@ -215,7 +215,7 @@ class InfoText extends Text { * in case of I/O error */ private String getInfoTag(URL source, String key) throws IOException { - key += "="; + key = "^" + key + "="; File file; try { @@ -230,12 +230,12 @@ class InfoText extends Text { try { String value = getLine(infoIn, key, 0); if (value != null && !value.isEmpty()) { - value = value.trim().substring(key.length()).trim(); + value = value.trim().substring(key.length() - 1).trim(); if (value.startsWith("'") && value.endsWith("'") || value.startsWith("\"") && value.endsWith("\"")) { value = value.substring(1, value.length() - 1).trim(); } - + return value; } } finally {