change config bundle to better work with new nikiroo-utils
[fanfix.git] / src / be / nikiroo / fanfix / supported / BasicSupport_Deprecated.java
index ba4748417235ca202a9a5b1dc826bfaf764a8c13..7a652a46adb7000997cb08451ba07f2be6de427e 100644 (file)
@@ -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,8 +391,7 @@ 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.CHAPTER)) {
                        String chapterWord = Instance.getConfig().getStringX(
                                        Config.CHAPTER, lang);
                        if (chapterName.startsWith(chapterWord)) {
@@ -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 {