MangaHub: Update API and CDN URLs (#807)

This commit is contained in:
beerpsi 2024-01-30 20:35:43 +07:00 committed by GitHub
parent d730231c8f
commit 47df5d57d0
2 changed files with 3 additions and 3 deletions

View File

@ -39,14 +39,14 @@ import java.util.Locale
abstract class MangaHub( abstract class MangaHub(
override val name: String, override val name: String,
override val baseUrl: String, final override val baseUrl: String,
override val lang: String, override val lang: String,
private val dateFormat: SimpleDateFormat = SimpleDateFormat("MM-dd-yyyy", Locale.US), private val dateFormat: SimpleDateFormat = SimpleDateFormat("MM-dd-yyyy", Locale.US),
) : ParsedHttpSource() { ) : ParsedHttpSource() {
override val supportsLatest = true override val supportsLatest = true
private var baseApiUrl = "https://api.mghcdn.com" private var baseApiUrl = "$baseUrl/api"
private var baseCdnUrl = "https://imgx.mghcdn.com" private var baseCdnUrl = "https://imgx.mghcdn.com"
override val client: OkHttpClient = super.client.newBuilder() override val client: OkHttpClient = super.client.newBuilder()

View File

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