import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import be.nikiroo.fanfix.Instance;
import be.nikiroo.fanfix.bundles.Config;
import be.nikiroo.fanfix.data.MetaData;
import be.nikiroo.fanfix.Instance;
import be.nikiroo.fanfix.bundles.Config;
import be.nikiroo.fanfix.data.MetaData;
List<Entry<String, URL>> chaps = getChapters(source, in, null);
if (!chaps.isEmpty()) {
List<Entry<String, URL>> chaps = getChapters(source, in, null);
if (!chaps.isEmpty()) {
String author = getLine(in, "class=\"onlinestatus", 0);
if (author != null) {
return StringUtils.unhtml(author).trim();
String author = getLine(in, "class=\"onlinestatus", 0);
if (author != null) {
return StringUtils.unhtml(author).trim();
String title = getLine(in, "class=\"sflabel pagetitle", 0);
if (title != null) {
if (title.contains("(series)")) {
String title = getLine(in, "class=\"sflabel pagetitle", 0);
if (title != null) {
if (title.contains("(series)")) {
final URL value = guest(link);
final String key = StringUtils.unhtml(line).trim();
urls.add(new Entry<String, URL>() {
final URL value = guest(link);
final String key = StringUtils.unhtml(line).trim();
urls.add(new Entry<String, URL>() {
*/
private URL guest(String link) throws MalformedURLException {
if (link.contains("?")) {
if (link.contains("/?")) {
return new URL(link.replace("?", "guest?"));
*/
private URL guest(String link) throws MalformedURLException {
if (link.contains("?")) {
if (link.contains("/?")) {
return new URL(link.replace("?", "guest?"));