CommentViewerCollection / MultiCommentViewer

いろんな配信サイトのコメントを表示できるコメビュです
https://ryu-s.github.io/app/multicommentviewer
GNU General Public License v3.0
180 stars 45 forks source link

ニコ生の184のユーザ名がコメジェネで0コメと表示される #115

Closed ryu-s closed 5 years ago

ryu-s commented 5 years ago

コメジェネの仕様で、"handle"タグが無い場合に0コメと表示されてしまう。 以下のいずれかで対処可能

var handle="";
if(xml[i].getAttributeNode("handle") != null) {
  handle = xml[i].getAttributeNode("handle").value;
} else {
  if(xml[i].getAttributeNode("no") != null) {
    if(TxtFormat['NoHandleType']==0) {
      handle = xml[i].getAttributeNode("no").value+"コメ";
    } else if(TxtFormat['NoHandleType']==1) {
      handle = TxtFormat['NoHandleName'];
    } else if((TxtFormat['NoHandleType']==2)&&(xml[i].getAttributeNode("owner").value==0)) {
      return;
    }
  }
}
ryu-s commented 5 years ago

修正完了 9788be8b1c025493c244485ba96fcf307a3aa43b