diff --git a/app/src/main/java/ar/rulosoft/mimanganu/servers/DesuMe.java b/app/src/main/java/ar/rulosoft/mimanganu/servers/DesuMe.java index 2f412c5d..e3394256 100644 --- a/app/src/main/java/ar/rulosoft/mimanganu/servers/DesuMe.java +++ b/app/src/main/java/ar/rulosoft/mimanganu/servers/DesuMe.java @@ -289,7 +289,8 @@ public void loadMangaInformation(Manga manga, boolean forceReload) throws Except @Override public String getImageFrom(Chapter chapter, int page) throws Exception { assert chapter.getExtra() != null; - return chapter.getExtra().split("\\|")[page - 1]; + String img = chapter.getExtra().split("\\|")[page - 1]; + return (img.startsWith("//") ? "http:" + img : img); } @Override diff --git a/app/src/main/java/ar/rulosoft/mimanganu/servers/JapScan.java b/app/src/main/java/ar/rulosoft/mimanganu/servers/JapScan.java index 06592c7e..778f8581 100644 --- a/app/src/main/java/ar/rulosoft/mimanganu/servers/JapScan.java +++ b/app/src/main/java/ar/rulosoft/mimanganu/servers/JapScan.java @@ -157,4 +157,9 @@ public ServerFilter[] getServerFilters() { public boolean needRefererForImages() { return false; } + + @Override + public boolean hasSearch() { + return false; + } } \ No newline at end of file diff --git a/app/src/main/java/ar/rulosoft/mimanganu/servers/MangaShiroNet.java b/app/src/main/java/ar/rulosoft/mimanganu/servers/MangaShiroNet.java index 3757e4d4..73ceb486 100644 --- a/app/src/main/java/ar/rulosoft/mimanganu/servers/MangaShiroNet.java +++ b/app/src/main/java/ar/rulosoft/mimanganu/servers/MangaShiroNet.java @@ -17,7 +17,7 @@ public class MangaShiroNet extends ServerBase { - private static final String HOST = "https://mangashiro.org/"; + private static final String HOST = "https://mangashiro.co/"; private static final int[] fltOrder = { R.string.flt_order_alpha, R.string.flt_order_last_update, diff --git a/app/src/main/java/ar/rulosoft/mimanganu/servers/NeuMangaTv.java b/app/src/main/java/ar/rulosoft/mimanganu/servers/NeuMangaTv.java index cb993c1e..87dc7bd0 100644 --- a/app/src/main/java/ar/rulosoft/mimanganu/servers/NeuMangaTv.java +++ b/app/src/main/java/ar/rulosoft/mimanganu/servers/NeuMangaTv.java @@ -115,9 +115,13 @@ public String getImageFrom(Chapter chapter, int page) throws Exception { @Override public void chapterInit(Chapter chapter) throws Exception { Navigator nav = getNavigatorAndFlushParameters(); - nav.addHeader("Cookie", "age_confirmed=1"); String data = nav.get(HOST + chapter.getPath()); - chapter.setPages(Integer.parseInt(getFirstMatch(PATTERN_CHAPTER_PAGES, data, "can't init pages"))); + String np = getFirstMatchDefault(PATTERN_CHAPTER_PAGES, data, null); + if (np == null) { + nav.get(HOST + chapter.getPath() + "?to=001&cid=#/yes_i_am");//request cookie + np = getFirstMatch(PATTERN_CHAPTER_PAGES, data, "can't init pages"); + } + chapter.setPages(Integer.parseInt(np)); } @Override diff --git a/app/src/main/java/ar/rulosoft/navegadores/CookieFilter.java b/app/src/main/java/ar/rulosoft/navegadores/CookieFilter.java index 79374798..03bf484d 100644 --- a/app/src/main/java/ar/rulosoft/navegadores/CookieFilter.java +++ b/app/src/main/java/ar/rulosoft/navegadores/CookieFilter.java @@ -23,6 +23,10 @@ public CookieFilter(CookieCache cache, CookiePersistor persistor) { public synchronized List loadForRequest(HttpUrl url) { if (url.toString().matches(".+?senmanga.com/viewer.+")) { return new ArrayList<>(); + } else if (url.toString().contains("neumanga.tv")) { + List oc = super.loadForRequest(url); + oc.add(Cookie.parse(url, "age_confirmed=1")); + return oc; } else { return super.loadForRequest(url); }