mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-18 15:07:30 +01:00
UI improvements
This commit is contained in:
@@ -5,6 +5,7 @@ import com.squareup.okhttp.Response;
|
||||
|
||||
import org.jsoup.nodes.Document;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.List;
|
||||
|
||||
import eu.kanade.mangafeed.data.database.models.Chapter;
|
||||
@@ -80,6 +81,14 @@ public abstract class BaseSource {
|
||||
|
||||
// Get the URL of the first page that contains a source image and the page list
|
||||
protected String overrideChapterUrl(String defaultPageUrl) {
|
||||
if(defaultPageUrl.startsWith("http")){
|
||||
try {
|
||||
URI uri = new URI(defaultPageUrl);
|
||||
defaultPageUrl = uri.getPath() + "?" + uri.getQuery();
|
||||
}catch (Exception ignored){
|
||||
return defaultPageUrl;
|
||||
}
|
||||
}
|
||||
return defaultPageUrl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user