FileInstanciator.InstanciationType tcommType = new FileInstanciator.InstanciationType(
profile.getTcommentSetting());
- fi = FileInstanciator.create(getStopFlag(), videoType, commentType, tcommType, profile.getLoginInfo(), movieId,
- time);
+ fi = FileInstanciator.create(getStopFlag(), videoType, commentType, tcommType, profile.getLoginInfo(), profile.
+ getProxySetting(), movieId, time);
return fi;
}
}
@Override
+ public Proxy getProxySetting(){
+ return loginInfo.getProxy();
+ }
+
+ @Override
public InputFileSetting getVideoSetting() {
return videoSetting;
}
this.port = port;
}
+ public boolean use(){
+ return this != NO_PROXY;
+ }
+
public String getHost() {
return host;
}
import yukihane.saccubus.converter.profile.InputFileSetting;
import saccubus.net.TextProgressListener;
import yukihane.saccubus.converter.profile.LoginInfo;
+import yukihane.saccubus.converter.profile.Proxy;
/**
* ダウンロード処理を全く必要としない場合のファイルインスタンス化クラス.
CommentInstanciationType commentType,
InstanciationType tcommType,
LoginInfo li,
+ Proxy proxy,
String tag, String time) throws
IOException {
FileInstanciator getter;
if (videoType.isDoanload() || commentType.isDoanload() || tcommType.isDoanload()) {
- getter = new WebFileInstanciator(stopFlag, videoType, commentType, tcommType, li, tag, time);
+ getter = new WebFileInstanciator(stopFlag, videoType, commentType, tcommType, li, proxy, tag, time);
} else {
getter = new FileInstanciator(videoType, commentType, tcommType, tag);
}
import java.io.IOException;
import java.text.Normalizer;
import saccubus.ConvertStopFlag;
-import saccubus.converter.classic.profile.Proxy;
import saccubus.net.NicoClient;
import saccubus.net.VideoInfo;
+import yukihane.saccubus.converter.profile.Proxy;
import yukihane.saccubus.converter.profile.LoginInfo;
/**
CommentInstanciationType commentType,
InstanciationType tcommType,
LoginInfo li,
+ Proxy proxy,
String tag,
String time) throws IOException {
super(videoType, commentType, tcommType, tag);
String host;
int port;
- if (li.getProxy() != Proxy.NO_PROXY) {
- host = li.getProxy().getHost();
- port = li.getProxy().getPort();
+ if (proxy.use()) {
+ host = proxy.getHost();
+ port = proxy.getPort();
} else {
host = null;
port = -1;
public String getMail();
public String getPass();
-
- public Proxy getProxy();
}
LoginInfo getLoginInfo();
+ Proxy getProxySetting();
+
InputFileSetting getVideoSetting();
InputFileSetting getCommentSetting();
*/
public interface Proxy {
- public String getHost();
+ boolean use();
- public int getPort();
+ String getHost();
+
+ int getPort();
}