@Override
public DownloadResult work() throws Exception {
- publish(new DownloadProgress(PROCESS, "ログイン中"));
+ publish(new DownloadProgress(PROCESS, 0.0, "ログイン中"));
NicoHttpClient client = null;
nicobrowser.VideoInfo vi = null;
@Override
public void progress(long fileSize, long downloadSize) {
final double vol = (double) downloadSize / (double) fileSize * 100.0;
- publish(new DownloadProgress(PROCESS, String.format("ダウンロード%.2f%%", vol)));
+ publish(new DownloadProgress(PROCESS, vol, String.format("ダウンロード%.2f%%", vol)));
}
});