MangaHub: update API URL (#318)

* Update MangaHub.kt

Updated the MangaHub API from "mghubcdn.com" to "mghcdn.com" to resolve the issue "hostname api.mghubcbdn.com not verified" as the URL had moved over to "mghcdn.com"

* Update MangaHubGenerator.kt

Updated "overrideVersionCode" as needed for all multisrc extensions

* Update MangaHubGenerator.kt

Updated "overrideVersionCode" as needed for all multisrc extensions and reverted the change made in the previous commit for "baseVersionCode".
This commit is contained in:
Umair Yousif 2024-01-17 20:40:28 +05:00 committed by Draff
parent 2e410da03b
commit f3f816f956
2 changed files with 3 additions and 3 deletions

View File

@ -46,8 +46,8 @@ abstract class MangaHub(
override val supportsLatest = true
private var baseApiUrl = "https://api.mghubcdn.com"
private var baseCdnUrl = "https://imgx.mghubcdn.com"
private var baseApiUrl = "https://api.mghcdn.com"
private var baseCdnUrl = "https://imgx.mghcdn.com"
override val client: OkHttpClient = super.client.newBuilder()
.setRandomUserAgent(

View File

@ -9,7 +9,7 @@ class MangaHubGenerator : ThemeSourceGenerator {
override val themeClass = "MangaHub"
override val baseVersionCode: Int = 22
override val baseVersionCode: Int = 23
override val sources = listOf(
// SingleLang("1Manga.co", "https://1manga.co", "en", isNsfw = true, className = "OneMangaCo"),