public static String getEmision() { checkCacheDir(); if (emision.exists()) { String json = FileUtil.getStringFromFile(emision); if (FileUtil.isJSONValid(json)) { return json; } else { emision.delete(); } } return "null"; }
public static String getDirectorio() { checkCacheDir(); if (directorio.exists()) { String json = FileUtil.getStringFromFile(directorio); if (FileUtil.isJSONValid(json)) { return json; } else { directorio.delete(); } } return "null"; }
public static String getAnime(ANIME anime) { checkCacheDir(); File a = new File(animecache, anime.aid + ".txt"); if (a.exists()) { return FileUtil.getStringFromFile(a); } else { return "null"; } }