fix YYYY -> yyyy in Fanction support
[fanfix.git] / src / be / nikiroo / fanfix / supported / Fanfiction.java
index 64df8d3195bb6274668f26231e459701c11eac72..fcf773bd78b787693cd3afa28febd8502f997fc6 100644 (file)
@@ -138,7 +138,7 @@ class Fanfiction extends BasicSupport_Deprecated {
                        }
                }
 
-               return BasicSupportHelper.fixAuthor(author);
+               return bsHelper.fixAuthor(author);
        }
 
        private String getDate(InputStream in) {
@@ -153,7 +153,7 @@ class Fanfiction extends BasicSupport_Deprecated {
                                        line = line.substring(0, pos).trim();
                                        try {
                                                SimpleDateFormat sdf = new SimpleDateFormat(
-                                                               "YYYY-MM-dd");
+                                                               "yyyy-MM-dd");
                                                return sdf
                                                                .format(new Date(1000 * Long.parseLong(line)));
                                        } catch (NumberFormatException e) {
@@ -304,10 +304,10 @@ 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.CONF_CHAPTER)) {
                                                        String chapterWord = Instance.getConfig()
-                                                                       .getStringX(Config.CHAPTER, lang);
+                                                                       .getStringX(Config.CONF_CHAPTER, lang);
                                                        int posChap = line.indexOf(chapterWord + " ");
                                                        if (posChap < pos) {
                                                                chaptered = true;