change config bundle to better work with new nikiroo-utils
[fanfix.git] / src / be / nikiroo / fanfix / supported / Text.java
index 5a4188a2fe6bfa431ccca2cc6eb57904740d42be..34f180e94c3cb16bc778313ccaeebdc5ceef0472 100644 (file)
@@ -331,8 +331,7 @@ class Text extends BasicSupport {
         */
        static private String detectChapter(String line, int number) {
                line = line.toUpperCase();
-               for (String lang : Instance.getConfig().getString(Config.CHAPTER)
-                               .split(",")) {
+               for (String lang : Instance.getConfig().getList(Config.CHAPTER)) {
                        String chapter = Instance.getConfig().getStringX(Config.CHAPTER,
                                        lang);
                        if (chapter != null && !chapter.isEmpty()) {