OSDN Git Service

コメントの過去ログを取得できるように対応
[coroid/inqubus.git] / frontend / src / yukihane / inqubus / saccubus_adapter / NicoBrowserAdapter.java
index 3ecd4e8..d901ecf 100644 (file)
@@ -7,6 +7,7 @@ import java.util.logging.Logger;
 import nicobrowser.GetFlvResult;
 import nicobrowser.NicoHttpClient;
 import nicobrowser.ProgressListener;
+import nicobrowser.WayBackInfo;
 import saccubus.ConvertStopFlag;
 import saccubus.net.CommentInfo;
 import saccubus.net.NicoClient;
@@ -15,7 +16,7 @@ import saccubus.net.VideoInfo;
 import saccubus.util.FileUtil;
 
 /**
- *
+ * NicoBrowserのニコニコ動画サービスアクセス機能をいんきゅばすから使用するためのアダプタ.
  * @author yuki
  */
 public class NicoBrowserAdapter implements NicoClient {
@@ -69,8 +70,8 @@ public class NicoBrowserAdapter implements NicoClient {
     public File getComment(VideoInfo videoInfo, CommentInfo commentInfo, File file, TextProgressListener listener,
             String com) {
         try {
-            // TODO CommentInfo を使用するようにしなければ
-            return client.getCommentFile(nicoBrowserVi, file.getPath());
+            WayBackInfo wbi = new WayBackInfo(commentInfo.getWayBackKey(), commentInfo.getWayBackTime());
+            return client.getCommentFile(nicoBrowserVi, file.getPath(), wbi);
         } catch (Exception ex) {
             logger.log(Level.SEVERE, "コメント取得失敗", ex);
         }