From d951fe88ed168d7266c0f38bbea50e3fcdc265c9 Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Fri, 8 Oct 2021 15:12:10 +0300 Subject: [PATCH] MangAdventure: bump versionId (#9399) --- .../tachiyomi/multisrc/mangadventure/MangAdventure.kt | 6 +++++- .../multisrc/mangadventure/MangAdventureGenerator.kt | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangadventure/MangAdventure.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangadventure/MangAdventure.kt index 23bee57dd..ce37accb2 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangadventure/MangAdventure.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangadventure/MangAdventure.kt @@ -37,11 +37,15 @@ abstract class MangAdventure( "Tachiyomi/${BuildConfig.VERSION_NAME}" /** The URI of the site's API. */ - private val apiUri by lazy { Uri.parse("$baseUrl/api/v2")!! } + private val apiUri by lazy { + Uri.parse("$baseUrl/api/v$versionId")!! + } /** The JSON parser of the class. */ private val json by injectLazy() + override val versionId = 2 + override val supportsLatest = true override fun headersBuilder() = diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangadventure/MangAdventureGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangadventure/MangAdventureGenerator.kt index a4595642a..a0486f103 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangadventure/MangAdventureGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangadventure/MangAdventureGenerator.kt @@ -9,7 +9,7 @@ class MangAdventureGenerator : ThemeSourceGenerator { override val themeClass = "MangAdventure" - override val baseVersionCode = 5 + override val baseVersionCode = 6 override val sources = listOf( SingleLang("Arc-Relight", "https://arc-relight.com", "en", className = "ArcRelight"),