import java.io.File;
import java.io.IOException;
import java.util.Date;
+import java.util.EnumSet;
import java.util.logging.Logger;
+import nicobrowser.DownloadCommentType;
import nicobrowser.GetFlvResult;
import nicobrowser.NamePattern;
import nicobrowser.NicoHttpClient;
final String name = pattern.createFileName(videoId, true);
final File file = new File(profile.getCommentProfile().getDir(), name);
- commentFile = client.getCommentFile(vi, file.getPath(), wbi, profile.getCommentProfile().
- getLengthRelatedCommentSize(),
- profile.getCommentProfile().isDisablePerMinComment());
+ final EnumSet<DownloadCommentType> commentSet = EnumSet.of(DownloadCommentType.OWNER);
+ if(profile.getCommentProfile().isDisablePerMinComment()) {
+ commentSet.add(DownloadCommentType.COMMENT_OLD);
+ } else {
+ commentSet.add(DownloadCommentType.COMMENT);
+ }
+ commentFile = client.getCommentFile(vi, file.getPath(), commentSet, wbi, profile.getCommentProfile().
+ getLengthRelatedCommentSize());
} else {
commentFile = profile.getCommentProfile().getLocalFile();
}