mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-13 12:27:40 +07:00
Now get up to 100 mods in mod list (up from 30) - kudos @ravignir for noticing there were missing mods!
This commit is contained in:
parent
a55cea110e
commit
d7379508f0
@ -179,7 +179,8 @@ object Github {
|
||||
|
||||
|
||||
fun tryGetGithubReposWithTopic(): ArrayList<Repo> {
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user