Fix Romaji tags not being properly implemented.

master
sigonasr2 5 years ago
parent 7089545623
commit 04e1585f83
  1. BIN
      Tagger/Tagger.jar
  2. 4
      Tagger/src/PixivManager.java

Binary file not shown.

@ -89,7 +89,7 @@ public class PixivManager {
JSONObject tag = tagsArray.getJSONObject(i);
String ENTag="";
String romaji="";
if (tag.has("romaji") && !tag.isNull("romaji")) {
if (tag.has("romaji")) {
romaji = tag.getString("romaji");
}
if (tag.has("translation")) {
@ -99,7 +99,7 @@ public class PixivManager {
ENTag = translationObj.getString("en");
}
} else
if (tag.has("tag") /*&& romaji.length()==0 */&& !tag.getString("tag").matches("[ -~]")) {
if (tag.has("tag") /*&& romaji.length()==0 */&& tag.getString("tag").matches("[ -~]")) {
hasEnglishTag=true;
ENTag = tag.getString("tag");
}

Loading…
Cancel
Save