X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fsupported%2FInfoText.java;h=365c51a77377c2bd60f73cee26e576216b2d8e67;hp=021b8c0b47abec25bd328e01554aa0586b7e54f7;hb=7de079f11e29028d226132d84b4fef3870453599;hpb=d011400048cae6884f0d94c320498429b45fb48a diff --git a/src/be/nikiroo/fanfix/supported/InfoText.java b/src/be/nikiroo/fanfix/supported/InfoText.java index 021b8c0..365c51a 100644 --- a/src/be/nikiroo/fanfix/supported/InfoText.java +++ b/src/be/nikiroo/fanfix/supported/InfoText.java @@ -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 {