[Change] PixivURL 调整RankingContentType.ALL名称(ALL -> TYPE_ALL);

[Add] PixivDownload 增加调试日志信息;
[Fix] RandomIntervalSendTimer 修复cancel方法无法停止定时器的问题;
This commit is contained in:
2020-04-24 23:54:26 +08:00
parent 16522155e1
commit a1e54e70d9
3 changed files with 4 additions and 2 deletions

View File

@ -317,6 +317,7 @@ public class PixivDownload {
ArrayList<JsonObject> results = new ArrayList<>(range);
for (int pageIndex = startPages; pageIndex <= endPages && count < range; pageIndex++) {
HttpGet request = createHttpGetRequest(PixivURL.getRankingLink(contentType, mode, time, pageIndex, true));
log.debug("RequestUri: {}", request.getURI());
HttpResponse response = httpClient.execute(request);
if(response.getStatusLine().getStatusCode() != 200) {