change config bundle to better work with new nikiroo-utils
[fanfix.git] / src / be / nikiroo / fanfix / supported / BasicSupportHelper.java
index 0c9e199fa2695af13d15493e1a121aa37a04f270..652506762ff6b9cc5aa13f19836d40d04e16bd42 100644 (file)
@@ -80,8 +80,7 @@ class BasicSupportHelper {
                        }
                        InputStream in = null;
                        try {
-                               in = Instance.getCache().open(url,
-                                               BasicSupport.getSupport(url), true);
+                               in = Instance.getCache().open(url, support, true);
                                return new Image(in);
                        } catch (IOException e) {
                        } finally {
@@ -205,8 +204,7 @@ class BasicSupportHelper {
        public static String fixAuthor(String author) {
                if (author != null) {
                        for (String suffix : new String[] { " ", ":" }) {
-                               for (String byString : Instance.getConfig()
-                                               .getString(Config.BYS).split(",")) {
+                               for (String byString : Instance.getConfig().getList(Config.BYS)) {
                                        byString += suffix;
                                        if (author.toUpperCase().startsWith(byString.toUpperCase())) {
                                                author = author.substring(byString.length()).trim();