import saccubus.converter.profile.Proxy;
import saccubus.net.CommentInfo;
import saccubus.net.NicoClient;
-import saccubus.net.NicoClientImpl;
import saccubus.net.VideoInfo;
import saccubus.util.WayBackTimeParser;
+import yukihane.inqubus.saccubus_adapter.NicoBrowserAdapter;
/**
* 動画ファイル, コメントファイルなど必要なファイルのうち, 1つでもダウンロード処理を必要とする場合のインスタンス化クラス.
host = null;
port = -1;
}
- // TODO Implを直接newしている
- client = new NicoClientImpl(li.getMail(), li.getPass(), stopFlag, host, port) {
+ client = new NicoBrowserAdapter(li.getMail(), li.getPass(), stopFlag, host, port) {
};
if (!client.isLoggedIn()) {
videoInfo = client.getVideoInfo(tag);
if (StringUtils.isNotBlank(time)) {
System.out.print("Setting wayback time...");
- final String waybacktime = WayBackTimeParser.parse(time);
+ final long waybacktime = WayBackTimeParser.parse(time);
String waybackkey = client.getWayBackKey(videoInfo);
commentInfo = new CommentInfo(waybackkey, waybacktime);
}else{
- commentInfo = CommentInfo.DEFAULT;
+ commentInfo = null;
}
} catch (IOException ex) {
throw new IOException(tag + "の情報の取得に失敗", ex);
}
- if (videoType.isDoanload()) {
+ if (videoType.isDownload()) {
setVideoFileGetter(new VideoFileWebGetter(client, videoInfo));
}
- if (commentType.isDoanload()) {
+ if (commentType.isDownload()) {
setCommentFileGetter(new CommentFileWebGetter(client, videoInfo, commentInfo, commentType.isAutoCommentNum(),
commentType.getBackComment()));
}
- if (tcommType.isDoanload()) {
+ if (tcommType.isDownload()) {
setTcommFileGetter(new TcommFileWebGetter(client, videoInfo));
}
}