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

Commit

Permalink
fix cfi and japscan
Browse files Browse the repository at this point in the history
v1.100
  • Loading branch information
raulhaag committed Mar 16, 2019
1 parent dd1f256 commit c112373
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ Downloads

Changelog
---------
Cambios en v1.100:
* Fix CFI.
* Fix JapScan.

Changes in v1.100:
* Fix CFI.
* Fix JapScan.

Cambios en v1.99:
* Fix mangahere and fanfox.

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 '28.0.2'
defaultConfig {
applicationId "ar.rulosoft.mimanganu"
versionCode 99
versionName "1.99"
versionCode 100
versionName "1.100"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
minSdkVersion 15
}
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/java/ar/rulosoft/mimanganu/servers/JapScan.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,9 @@ public ArrayList<Manga> getMangasFiltered(int[][] filters, int pageNumber) throw
String source = getNavigatorAndFlushParameters().get(HOST + "/mangas/" + pageNumber);
return getMangasFromSource(source);
}

@Override
public boolean needRefererForImages() {
return false;
}
}
5 changes: 2 additions & 3 deletions app/src/main/java/ar/rulosoft/navegadores/CFInterceptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.squareup.duktape.Duktape;

import java.io.IOException;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

Expand Down Expand Up @@ -53,8 +52,8 @@ public Response resolveOverCF(Chain chain, Response response) throws IOException
return response; // returning null here is not a good idea since it could stop a download ~xtj-9182
}

String operation = rawOperation.replaceAll("a\\.value = (.+ \\+ t\\.length).+", "$1").replaceAll("\\s{3,}[a-z](?: = |\\.).+", "");
String js = operation.replaceAll("t.length", "" + domain.length()).replaceAll("\n", "");
String operation = rawOperation.replaceAll("a\\.value = (.+ \\+ t\\.length.+?);.+", "$1").replaceAll("\\s{3,}[a-z](?: = |\\.).+", "");
String js = operation.replaceAll("t.length", domain.length() + "").replaceAll("\n", "");
Duktape duktape = Duktape.create();
String result = "";
try {
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.99:\n\t* Fix mangahere and fanfox.</string>
<string name="update_message">Cambios en v1.100:\n\t* Fix CFI.\n\t* Fix JapScan.</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 in v1.99:\n\t* Fix mangahere and fanfox.</string>
<string name="update_message">Changes in v1.100:\n\t* Fix CFI.\n\t* Fix JapScan.</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 c112373

Please sign in to comment.