Case sensitivity removed for tag whitelist.

pull/1/head
sigonasr2 5 years ago
parent 1affa36254
commit acf7efa975
  1. BIN
      Tagger/Tagger.jar
  2. 2
      Tagger/src/PixivManager.java
  3. 4
      Tagger/src/imageTag.java

Binary file not shown.

@ -108,7 +108,7 @@ public class PixivManager {
tagSubmitted=true;
}*/
if (tagSubmitted) {
if (imageTag.tag_whitelist.size()==0 || imageTag.tag_whitelist.containsKey(insertedTag)) {
if (imageTag.tag_whitelist.size()==0 || imageTag.tag_whitelist.containsKey(insertedTag.toLowerCase())) {
if (imageTag.taglist.containsKey(s)) {
List<String> tags = imageTag.taglist.get(s);
tags.add(insertedTag);

@ -56,11 +56,11 @@ public class imageTag {
try {
s = br.readLine();
while (s!=null) {
String newtag = s.trim();
String newtag = s.trim().toLowerCase();
tag_whitelist.put(newtag,true);
System.out.println("Read in whitelisted tag: "+newtag);
s=br.readLine();
}
}
} catch (IOException e) {
e.printStackTrace();
}

Loading…
Cancel
Save