1 package saccubus.converter.filegetter;
4 import java.io.IOException;
5 import saccubus.net.NicoClient;
6 import saccubus.net.TextProgressListener;
7 import saccubus.net.VideoInfo;
13 public class VideoFileWebGetter extends FileGetter {
15 private final NicoClient client;
16 private final VideoInfo videoInfo;
18 VideoFileWebGetter(NicoClient client, VideoInfo videoInfo) {
20 this.videoInfo = videoInfo;
24 File get(File file, TextProgressListener listener) throws IOException {
25 listener.setText("動画のダウンロード開始中");
26 File res = client.getVideo(videoInfo, file, listener);
28 throw new IOException("動画ファイルのダウンロードに失敗しました。");