import java.io.File;
import java.io.IOException;
+import saccubus.net.CommentInfo;
import saccubus.net.NicoClient;
import saccubus.net.TextProgressListener;
import saccubus.net.VideoInfo;
private final boolean autoCommentNum;
private final int backComment;
+ private final CommentInfo commentInfo;
- CommentFileWebGetter(NicoClient client, VideoInfo vi, boolean autoCommentNum, int backComment) {
+ CommentFileWebGetter(NicoClient client, VideoInfo vi, CommentInfo ci, boolean autoCommentNum, int backComment) {
super(client, vi);
this.autoCommentNum = autoCommentNum;
this.backComment = backComment;
+ this.commentInfo = ci;
}
@Override
com = getBackCommentFromLength(getVideoInfo(), com);
}
- File res = getClient().getComment(getVideoInfo(), file, listener, com);
+ File res = getClient().getComment(getVideoInfo(), getCommentInfo(), file, listener, com);
if (res == null) {
throw new IOException("コメントファイルのダウンロードに失敗しました。");
}
return "1000";
}
}
+
+ private CommentInfo getCommentInfo() {
+ return commentInfo;
+ }
}