Skip to content
This repository was archived by the owner on Jul 23, 2020. It is now read-only.

Commit 1f4c2bb

Browse files
committed
clean and changed cfi to a webview implementation maybe for the moment or forever, who knows?
1 parent ae09824 commit 1f4c2bb

File tree

7 files changed

+19
-11
lines changed

7 files changed

+19
-11
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ Downloads
4949

5050
Changelog
5151
---------
52+
Cambios en v1.132:
53+
* Fix kissmanga.
54+
* Fix mangakawaii.
55+
56+
Changes on v1.132:
57+
* Fix kissmanga.
58+
* Fix mangakawaii.
59+
5260
Cambios en v1.131:
5361
* Fix cfi (necesita webView).
5462
* Fix Japscan.

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ android {
55
buildToolsVersion '29.0.3'
66
defaultConfig {
77
applicationId "ar.rulosoft.mimanganu"
8-
versionCode 131
9-
versionName "1.131"
8+
versionCode 132
9+
versionName "1.132"
1010
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1111
minSdkVersion 15
1212
}

app/src/main/java/ar/rulosoft/mimanganu/componentes/Chapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class Chapter {
2727
private int readStatus = UNREAD;
2828
private String title;
2929
private String path;
30-
private String extra = "";
30+
private String extra;
3131
private boolean downloaded;
3232
private float volatile_order = -1;
3333

app/src/main/java/ar/rulosoft/mimanganu/servers/KissManga.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public synchronized void chapterInit(Chapter chapter) throws Exception {
186186
}
187187
}
188188

189-
p = Pattern.compile("push\\((wrap.+?\\))\\)", Pattern.DOTALL);
189+
p = Pattern.compile("lstOLA.push\\((wrap.+?\\))\\)", Pattern.DOTALL);
190190
m = p.matcher(source);
191191
StringBuilder sb = new StringBuilder();
192192
String image;

app/src/main/java/ar/rulosoft/mimanganu/servers/MangaKawaii.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ public synchronized void loadMangaInformation(Manga manga, boolean forceReload)
104104
@Override
105105
public String getImageFrom(Chapter chapter, int page) throws Exception {
106106
assert chapter.getExtra() != null;
107-
return chapter.getExtra().split("\\|")[page - 1];
107+
return chapter.getExtra().split("\\|")[page];
108108
}
109109

110110
@Override
111111
public synchronized void chapterInit(Chapter chapter) throws Exception {
112-
if (chapter.getExtra() == null) {
113-
String source = getNavigatorAndFlushParameters().get(HOST + chapter.getPath());
114-
ArrayList<String> images = getAllMatch("data-src\", \"\\s*([^\"]+)\"", source);
115-
112+
if (chapter.getExtra() == null || chapter.getExtra().length() == 0) {
113+
getNavigatorAndFlushParameters().get(HOST);
114+
String source = getNavigatorAndFlushParameters().get(HOST + chapter.getPath() + "/1");
115+
ArrayList<String> images = getAllMatch("\"data-src\", \"\\s*([^\"]+)\\s+", source);
116116
if (images.isEmpty()) {
117117
throw new Exception(context.getString(R.string.server_failed_loading_page_count));
118118
}

app/src/main/res/values-es/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<string name="update_message">Cambios en v1.131:\n\t* Fix cfi (necesita webView).\n\t* Fix Japscan.\n\t* Otros arreglos y cambios.</string>
3+
<string name="update_message">Cambios en v1.132:\n\t* Fix kissmanga.\n\t* Fix mangakawaii.</string>
44
<string name="action_ajustar_a">Ajustar a</string>
55
<string name="descargas">Descargas</string>
66
<string name="datosde">Datos de </string>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<string name="update_message">Changes on v1.131:\n\t* Fix cfi (needs webView).\n\t* Fix Japscan.\n\t* Other changes and fixes.</string>
3+
<string name="update_message">Changes on v1.132:\n\t* Fix kissmanga.\n\t* Fix mangakawaii.</string>
44
<string name="_12hours">12 Hours</string>
55
<string name="_1day">1 day</string>
66
<string name="_2day">2 days</string>

0 commit comments

Comments
 (0)