From 5b8cd2964ff7a63bb2b9cfc15e3a07e2036b68e2 Mon Sep 17 00:00:00 2001 From: Graham Date: Fri, 23 Jun 2023 19:58:37 +0100 Subject: [PATCH] Download names from Pazaz's repository Signed-off-by: Graham --- .../openrs2/archive/name/RuneStarNameDownloader.kt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/archive/src/main/kotlin/org/openrs2/archive/name/RuneStarNameDownloader.kt b/archive/src/main/kotlin/org/openrs2/archive/name/RuneStarNameDownloader.kt index ceca288162..87589017ff 100644 --- a/archive/src/main/kotlin/org/openrs2/archive/name/RuneStarNameDownloader.kt +++ b/archive/src/main/kotlin/org/openrs2/archive/name/RuneStarNameDownloader.kt @@ -27,6 +27,8 @@ public class RuneStarNameDownloader @Inject constructor( names += readTsv(endpoint, 0) } + names += readTsv(LEANBOW_NAMES_ENDPOINT, 1) + return names.asSequence() } @@ -50,12 +52,18 @@ public class RuneStarNameDownloader @Inject constructor( private companion object { private val NAMES_ENDPOINTS = listOf( + URI("https://raw.githubusercontent.com/Joshua-F/cache-names/master/names.tsv"), + URI("https://raw.githubusercontent.com/Pazaz/RT4-Data/main/names.tsv"), + URI("https://raw.githubusercontent.com/Pazaz/RT4-Data/main/osrs.tsv"), + URI("https://raw.githubusercontent.com/Pazaz/RT4-Data/main/walied.tsv"), URI("https://raw.githubusercontent.com/RuneStar/cache-names/master/names.tsv"), - URI("https://raw.githubusercontent.com/Joshua-F/cache-names/master/names.tsv") ) private val INDIVIDUAL_NAMES_ENDPOINTS = listOf( + URI("https://raw.githubusercontent.com/Joshua-F/cache-names/master/individual-names.tsv"), + URI("https://raw.githubusercontent.com/Pazaz/RT4-Data/main/walied.individual.components.tsv"), + URI("https://raw.githubusercontent.com/Pazaz/RT4-Data/main/walied.individual.tsv"), URI("https://raw.githubusercontent.com/RuneStar/cache-names/master/individual-names.tsv"), - URI("https://raw.githubusercontent.com/Joshua-F/cache-names/master/individual-names.tsv") ) + private val LEANBOW_NAMES_ENDPOINT = URI("https://raw.githubusercontent.com/Pazaz/RT4-Data/main/leanbow.tsv") } }