• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

D wrapper around (some) of the pixiv web API


Commit MetaInfo

Révisionec0f80a31846bc9a58dd1a31e583cbfebcfbc050 (tree)
l'heure2023-09-28 16:10:33
Auteursupercell <stigma@disr...>
Commitersupercell

Message de Log

Fix incorrect number for PageAlreadyDownloaded

Change Summary

Modification

--- a/source/pixivd/client.d
+++ b/source/pixivd/client.d
@@ -821,7 +821,7 @@ private:
821821 const jsonBody = json["body"].array;
822822 // +1 so this matches PageAlreadyDownloaded containing the
823823 // 1-based numbering of the current page.
824- const totalNumberOfPages = jsonBody.length + 1;
824+ const totalNumberOfPages = jsonBody.length;
825825
826826 foreach (pageNumber, jsonobj; jsonBody)
827827 {