X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fsupported%2FBasicSupport_Deprecated.java;h=1faac03eba405657f6861f53660f2150357a4387;hb=13fdb89adc017452a7a72f552b933f8e7b869413;hp=e22724a20aad5634fb38523dac7d9ddc231cf25f;hpb=6bfa27805ec903223e6e45c6f4d00e94629a064c;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/supported/BasicSupport_Deprecated.java b/src/be/nikiroo/fanfix/supported/BasicSupport_Deprecated.java index e22724a..1faac03 100644 --- a/src/be/nikiroo/fanfix/supported/BasicSupport_Deprecated.java +++ b/src/be/nikiroo/fanfix/supported/BasicSupport_Deprecated.java @@ -40,7 +40,6 @@ import be.nikiroo.utils.StringUtils; @Deprecated public abstract class BasicSupport_Deprecated extends BasicSupport { private InputStream in; - private URL currentReferer; // with only one 'r', as in 'HTTP'... // quote chars private char openQuote = Instance.getTrans().getCharacter( @@ -75,6 +74,7 @@ public abstract class BasicSupport_Deprecated extends BasicSupport { throw new RuntimeException("should not be used by legacy code"); } + @Override public Story process(Progress pg) throws IOException { return process(getSource(), pg); } @@ -391,10 +391,9 @@ public abstract class BasicSupport_Deprecated extends BasicSupport { // redundant "Chapter x: " in front of it, or "-" (as in // "Chapter 5: - Fun!" after the ": " was automatically added) String chapterName = processPara(name).getContent().trim(); - for (String lang : Instance.getConfig().getString(Config.CHAPTER) - .split(",")) { + for (String lang : Instance.getConfig().getList(Config.CONF_CHAPTER)) { String chapterWord = Instance.getConfig().getStringX( - Config.CHAPTER, lang); + Config.CONF_CHAPTER, lang); if (chapterName.startsWith(chapterWord)) { chapterName = chapterName.substring(chapterWord.length()) .trim(); @@ -681,7 +680,6 @@ public abstract class BasicSupport_Deprecated extends BasicSupport { // try for files if (source != null) { try { - String relPath = null; String absPath = null; try { @@ -1128,7 +1126,7 @@ public abstract class BasicSupport_Deprecated extends BasicSupport { * the line to return based upon the target line position (-1 = * the line before, 0 = the target line...) * - * @return the line + * @return the line, or NULL if not found */ static protected String getLine(InputStream in, String needle, int relativeLine) { @@ -1152,7 +1150,7 @@ public abstract class BasicSupport_Deprecated extends BasicSupport { * takes the first result (as opposed to the last one, which will * also always spend the input) * - * @return the line + * @return the line, or NULL if not found */ static protected String getLine(InputStream in, String needle, int relativeLine, boolean first) {