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

Commit

Permalink
clean and changed cfi to a webview implementation maybe for the momen…
Browse files Browse the repository at this point in the history
…t or forever, who knows?
  • Loading branch information
raulhaag committed May 21, 2020
1 parent ae09824 commit 1f4c2bb
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 11 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ Downloads

Changelog
---------
Cambios en v1.132:
* Fix kissmanga.
* Fix mangakawaii.

Changes on v1.132:
* Fix kissmanga.
* Fix mangakawaii.

Cambios en v1.131:
* Fix cfi (necesita webView).
* Fix Japscan.
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ android {
buildToolsVersion '29.0.3'
defaultConfig {
applicationId "ar.rulosoft.mimanganu"
versionCode 131
versionName "1.131"
versionCode 132
versionName "1.132"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
minSdkVersion 15
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class Chapter {
private int readStatus = UNREAD;
private String title;
private String path;
private String extra = "";
private String extra;
private boolean downloaded;
private float volatile_order = -1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public synchronized void chapterInit(Chapter chapter) throws Exception {
}
}

p = Pattern.compile("push\\((wrap.+?\\))\\)", Pattern.DOTALL);
p = Pattern.compile("lstOLA.push\\((wrap.+?\\))\\)", Pattern.DOTALL);
m = p.matcher(source);
StringBuilder sb = new StringBuilder();
String image;
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/java/ar/rulosoft/mimanganu/servers/MangaKawaii.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ public synchronized void loadMangaInformation(Manga manga, boolean forceReload)
@Override
public String getImageFrom(Chapter chapter, int page) throws Exception {
assert chapter.getExtra() != null;
return chapter.getExtra().split("\\|")[page - 1];
return chapter.getExtra().split("\\|")[page];
}

@Override
public synchronized void chapterInit(Chapter chapter) throws Exception {
if (chapter.getExtra() == null) {
String source = getNavigatorAndFlushParameters().get(HOST + chapter.getPath());
ArrayList<String> images = getAllMatch("data-src\", \"\\s*([^\"]+)\"", source);

if (chapter.getExtra() == null || chapter.getExtra().length() == 0) {
getNavigatorAndFlushParameters().get(HOST);
String source = getNavigatorAndFlushParameters().get(HOST + chapter.getPath() + "/1");
ArrayList<String> images = getAllMatch("\"data-src\", \"\\s*([^\"]+)\\s+", source);
if (images.isEmpty()) {
throw new Exception(context.getString(R.string.server_failed_loading_page_count));
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<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>
<string name="update_message">Cambios en v1.132:\n\t* Fix kissmanga.\n\t* Fix mangakawaii.</string>
<string name="action_ajustar_a">Ajustar a</string>
<string name="descargas">Descargas</string>
<string name="datosde">Datos de </string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<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>
<string name="update_message">Changes on v1.132:\n\t* Fix kissmanga.\n\t* Fix mangakawaii.</string>
<string name="_12hours">12 Hours</string>
<string name="_1day">1 day</string>
<string name="_2day">2 days</string>
Expand Down

0 comments on commit 1f4c2bb

Please sign in to comment.