final HttpPost post = new HttpPost(vi.getMessageUrl().toString());
final String param;
if (oldVersion || isTcomm) {
- param = createCommendDownloadParameter20101222(vi, isTcomm, wayback, commentNum);
+ param = createCommentDownloadParameter20101222(vi, isTcomm, wayback, commentNum);
} else {
- param = createCommendDownloadParameter(vi, wayback, commentNum);
+ param = createCommentDownloadParameter(vi, wayback, commentNum);
}
final StringEntity se = new StringEntity(param);
post.setEntity(se);
* @param commentNum コメント取得数. ビデオ再生時間に応じたデフォルト値を用いる場合にはnull.
* @return 生成されたパラメータ.
*/
- private String createCommendDownloadParameter(VideoInfo vi, WayBackInfo wayback, Integer commentNum) {
+ private String createCommentDownloadParameter(VideoInfo vi, WayBackInfo wayback, Integer commentNum) {
final Map<String, String> threadKey = vi.getKeyMap();
final Map<String, String> th = new HashMap<String, String>();
th.put("thread", vi.getThreadId());
* 2010/12/22 までのコメント表示仕様に基づいた取得パラメータ生成.
* 「コメントの量を減らす」にチェックを入れた場合は現在でもこれが用いられているはず.
*/
- private String createCommendDownloadParameter20101222(VideoInfo vi, boolean isTcomm, WayBackInfo wayback,
+ private String createCommentDownloadParameter20101222(VideoInfo vi, boolean isTcomm, WayBackInfo wayback,
Integer commentNum) {
final int resFrom = (commentNum == null || commentNum <= 0) ? vi.getResFrom() : commentNum.intValue();
final String tcommStr = (isTcomm) ? "fork=\"1\" " : "";