MangaHosted: Update domain and api url (#8303)

Update api url
This commit is contained in:
Chopper 2025-04-02 10:47:59 -03:00 committed by Draff
parent fad76bc4b2
commit 383d9c5535
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
4 changed files with 7 additions and 7 deletions

View File

@ -13,7 +13,7 @@
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https"
android:host="mangahosted.org"
android:host="mangago.fit"
android:pathPattern="/.*/..*" />
</intent-filter>

View File

@ -1,7 +1,7 @@
ext {
extName = 'Manga Hosted'
extClass = '.MangaHostedFactory'
extVersionCode = 2
extVersionCode = 3
isNsfw = true
}

View File

@ -26,7 +26,7 @@ class MangaHosted(private val langOption: LanguageOption) : HttpSource() {
override val name: String = "Manga Hosted${langOption.nameSuffix}"
override val baseUrl: String = "https://mangahosted.org"
override val baseUrl: String = "https://mangago.fit/${langOption.infix}"
override val supportsLatest = true
@ -80,7 +80,7 @@ class MangaHosted(private val langOption: LanguageOption) : HttpSource() {
override fun fetchSearchManga(page: Int, query: String, filters: FilterList): Observable<MangasPage> {
if (query.startsWith(SEARCH_PREFIX)) {
val url = "$baseUrl/${langOption.infix}/${query.substringAfter(SEARCH_PREFIX)}"
val url = "$baseUrl/${query.substringAfter(SEARCH_PREFIX)}"
return client.newCall(GET(url, headers))
.asObservableSuccess().map { response ->
val mangas = try { listOf(mangaDetailsParse(response)) } catch (_: Exception) { emptyList() }
@ -184,7 +184,7 @@ class MangaHosted(private val langOption: LanguageOption) : HttpSource() {
title = dto.title
thumbnail_url = dto.thumbnailUrl
status = dto.status
url = "/${langOption.infix}/${dto.slug}"
url = "/${dto.slug}"
genre = dto.genres
initialized = true
}
@ -195,7 +195,7 @@ class MangaHosted(private val langOption: LanguageOption) : HttpSource() {
companion object {
const val SEARCH_PREFIX = "slug:"
val baseApiUrl = "https://api.novelfull.us"
val baseApiUrl = "https://api.mangago.fit"
val apiUrl = "$baseApiUrl/api"
val dateFormat = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSSSS", Locale.ENGLISH)
}

View File

@ -23,7 +23,7 @@ val languages = listOf(
LanguageOption("id", "manga-indo", "id"),
LanguageOption("it", "manga-italia", "manga-it"),
LanguageOption("ja", "mangaraw", "raw"),
LanguageOption("pt-BR", "manga-br", orderBy = "ASC"),
LanguageOption("pt-BR", "manga-br"),
LanguageOption("ru", "manga-ru", "mangaru"),
LanguageOption("ru", "manga-ru-hentai", "hentai", " +18"),
LanguageOption("ru", "manga-ru-yaoi", "yaoi", " +18 Yaoi"),