Skip to content

Commit

Permalink
1.66.1.1 タイトル・タグ検索でタイトルの抽出修正
Browse files Browse the repository at this point in the history
  • Loading branch information
orz- committed Oct 11, 2016
1 parent 56f34a3 commit d894596
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
12 changes: 11 additions & 1 deletion frontend/src/saccubus/MylistGetter.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ public void run() {
val2 = "";
else if("キャッシュ".equals(val2)||"マイリストコメント一覧".equals(val2))
val2 = "";
else if(val2.contains(" -"))
val2 = val2.substring(val2.indexOf(" -")+(" -").length());
val2 = val2.trim();
if(!val2.isEmpty() && (val.isEmpty() || val.length() < val2.length())){
val = val2;
}
Expand All @@ -238,7 +241,14 @@ public void run() {
log.println("map.put("+key+",\""+val+"\")");
}else if(!title.equals(val)){
//タイトル登録済み
if(title.length()<val.length()){
if(title.length()<val.length() && val.length()<36){
map.put(key, val);
log.println("map.put("+key+",\""+val+"\")");
}
else if(title.length()<val.length()){
val = (title + "_" + val);
if(val.length()>48)
val = val.substring(0,48);
map.put(key, val);
log.println("map.put("+key+",\""+val+"\")");
}
Expand Down
7 changes: 4 additions & 3 deletions frontend/src/saccubus/util/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ public void print(String s){
out.print(s);
if(sysout != null)
sysout.print(s);
else
else {
System.out.print(s);
if(enableLogview)
logPrint(s);
if(enableLogview)
logPrint(s);
}
}

private void logPrint(String s){
Expand Down

0 comments on commit d894596

Please sign in to comment.