From d7379508f0ede68af5658aaccb2533aad2e68d0c Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sun, 7 Feb 2021 21:04:12 +0200 Subject: [PATCH] Now get up to 100 mods in mod list (up from 30) - kudos @ravignir for noticing there were missing mods! --- core/src/com/unciv/ui/worldscreen/mainmenu/DropBox.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/worldscreen/mainmenu/DropBox.kt b/core/src/com/unciv/ui/worldscreen/mainmenu/DropBox.kt index 377677f753..3b935e55da 100644 --- a/core/src/com/unciv/ui/worldscreen/mainmenu/DropBox.kt +++ b/core/src/com/unciv/ui/worldscreen/mainmenu/DropBox.kt @@ -179,7 +179,8 @@ object Github { fun tryGetGithubReposWithTopic(): ArrayList { - val inputStream = download("https://api.github.com/search/repositories?q=topic:unciv-mod") + // Default per-page is 30 - when we get to above 100 mods, we'll need to start search-queries + val inputStream = download("https://api.github.com/search/repositories?q=topic:unciv-mod&per_page=100") if (inputStream == null) return ArrayList() return GameSaver.json().fromJson(RepoSearch::class.java, inputStream.bufferedReader().readText()).items }