change config bundle to better work with new nikiroo-utils
[fanfix.git] / src / be / nikiroo / fanfix / supported / Fanfiction.java
index 7bdd4ffb9ca5c74f6548069328fae900be05b2e0..10c82fc522c26cf24fe6936972a97852f9956825 100644 (file)
@@ -118,7 +118,7 @@ class Fanfiction extends BasicSupport_Deprecated {
                        }
                }
 
-               return null;
+               return "";
        }
 
        private String getAuthor(InputStream in) {
@@ -304,8 +304,8 @@ class Fanfiction extends BasicSupport_Deprecated {
                                        int pos = line.indexOf("<hr");
                                        if (pos >= 0) {
                                                boolean chaptered = false;
-                                               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);
                                                        int posChap = line.indexOf(chapterWord + " ");