import be.nikiroo.fanfix.data.Story;
import be.nikiroo.fanfix.output.BasicOutput;
import be.nikiroo.fanfix.output.BasicOutput.OutputType;
-import be.nikiroo.fanfix.reader.CliReader;
+import be.nikiroo.fanfix.reader.BasicReader;
import be.nikiroo.fanfix.supported.BasicSupport;
import be.nikiroo.fanfix.supported.BasicSupport.SupportType;
return 1;
}
- CliReader.list(type);
+ BasicReader.getReader().start(type);
return 0;
}
*/
private static int read(String story, String chap, boolean library) {
try {
- CliReader reader;
+ BasicReader reader = BasicReader.getReader();
if (library) {
- reader = new CliReader(story);
+ reader.setStory(story);
} else {
- reader = new CliReader(getUrl(story));
+ reader.setStory(getUrl(story));
}
if (chap != null) {