Some quick fixes
[fanfix.git] / src / be / nikiroo / fanfix / supported / InfoText.java
index 021b8c0b47abec25bd328e01554aa0586b7e54f7..365c51a77377c2bd60f73cee26e576216b2d8e67 100644 (file)
@@ -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 {