OSDN Git Service

新しいコメント取得方法を実装する前段階として, 現在の取得メソッドの名称を変更
authoryukihane <yukihane.feather@gmail.com>
Sun, 14 Aug 2011 22:28:57 +0000 (07:28 +0900)
committeryukihane <yukihane.feather@gmail.com>
Mon, 15 Aug 2011 02:02:17 +0000 (11:02 +0900)
src/nicobrowser/NicoHttpClient.java

index 37d0748..be4664e 100644 (file)
@@ -802,7 +802,7 @@ public class NicoHttpClient {
 
         try {
             final HttpPost post = new HttpPost(vi.getMessageUrl().toString());
-            final String param = createCommendDownloadParameter(vi, isTcomm, wayback);
+            final String param = createCommendDownloadParameter20101222(vi, isTcomm, wayback);
             final StringEntity se = new StringEntity(param);
             post.setEntity(se);
             response = http.execute(post);
@@ -831,8 +831,13 @@ public class NicoHttpClient {
         }
     }
 
-    private String createCommendDownloadParameter(VideoInfo vi, boolean isTcomm, WayBackInfo wayback) {
+    /**
+     * 2010/12/22 までのコメント表示仕様に基づいた取得パラメータ生成.
+     * 「コメントの量を減らす」にチェックを入れた場合は現在でもこれが用いられているはず.
+     */
+    private String createCommendDownloadParameter20101222(VideoInfo vi, boolean isTcomm, WayBackInfo wayback) {
         final String tcommStr = (isTcomm) ? "fork=\"1\" " : "";
+        // TODO wayBackStr 使用するのを忘れている
         final String wayBackStr = (wayback != null) ? "when=" + "\"" + wayback.getTime() + "\"" + " waybackkey=" + "\""
                 + wayback.getKey() + " " : "";
         StringBuilder builder = new StringBuilder();