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

Commit

Permalink
ew diccionary an japscan fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
raulhaag committed Jul 23, 2020
1 parent dc78145 commit 5bfc9d2
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ private synchronized void generateDictionary(String newDicName) throws Exception
if(!currentScripts.contains(id)){
currentScripts.add(id);
}
enc.append(getFirstMatch("<div id=\"image\" data-src=\"https://c.japscan.co(/.+?)\\.jpg\"", data, "Error creating dictionary (Obtaining bases)"));
enc.append(getFirstMatch("<div id=\"image\" data-src=\"https://c.japscan.co(/.+?)\\..{3,4}\"", data, "Error creating dictionary (Obtaining bases)"));
}
if(currentScripts.size() != 3){
throw new Exception("Error creating dictionary (ids error, maybe hour change?)");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ public void onPageFinished(WebView view, String url) {
} else {
wv.loadUrl(web, headMap);
}
//wv.loadUrl(web, headMap);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
classpath 'com.android.tools.build:gradle:3.6.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
96 changes: 86 additions & 10 deletions js_plugin/28.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,88 @@
{
"idxs": [0, 1, 2, 3, 4, 5, 6, 455, 7, 1607, 1352, 11, 204, 14, 1808, 17, 18, 1171, 23, 216, 26, 29, 479, 31, 33, 163, 871, 1195, 620, 495, 560, 187, 507, 1211, 1659],
"values": ["/", "8", "9", "5", "4", "1", "0", "n", "c", "z", "g", "b", "v", "7", "x", "d", "6", "h", "2", "q", "3", "e", "o", "a", "f", "t", "y", "i", "l", "p", "m", "u", "k", "j", "w"],
"length": 1872,
"pages": [
"https://www.japscan.co/lecture-en-ligne/the-gamer/299/",
"https://www.japscan.co/lecture-en-ligne/bloody-kiss/volume-1/20.html",
"https://www.japscan.co/lecture-en-ligne/tales-of-demons-and-gods/265/",
"https://www.japscan.co/lecture-en-ligne/2001-night-stories/volume-1/",
"https://www.japscan.co/lecture-en-ligne/basilisk-the-oka-ninja-scrolls/4/"
"idxs": [
0,
1,
2,
1219,
899,
3,
644,
4,
5,
6,
712,
10,
11,
13,
15,
591,
1040,
82,
23,
215,
26,
1243,
1506,
35,
163,
676,
38,
615,
364,
1260,
308,
55,
1016,
1272,
952,
632,
1531
],
"values": [
"/",
"8",
"6",
"p",
"v",
"2",
"g",
"9",
"e",
"4",
"h",
"7",
"a",
"b",
"d",
"j",
"t",
"3",
"0",
"w",
"5",
"q",
"n",
"f",
"z",
"i",
"1",
"k",
"x",
"r",
"y",
"c",
"u",
"m",
"s",
"l",
"o"
],
"length": 1864,
"pages": [
"https://www.japscan.co/lecture-en-ligne/basilisk-the-oka-ninja-scrolls/4/",
"https://www.japscan.co/lecture-en-ligne/break-the-world/1/",
"https://www.japscan.co/lecture-en-ligne/boku-no-le-ni-oide/1/",
"https://www.japscan.co/lecture-en-ligne/re-monster/1/",
"https://www.japscan.co/lecture-en-ligne/akane-chan-overdrive/volume-1/"
]
}
}

0 comments on commit 5bfc9d2

Please sign in to comment.