MangaMx: Moved to MangaOni (#14739)

* MangaMX: Moved to MangaOni

* MangaMX: Moved to MangaOni

* Update Logo

* Apply requested changes
This commit is contained in:
Seew 2022-12-30 16:17:39 -05:00 committed by GitHub
parent 37e0751759
commit 65a442d6b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 13 additions and 8 deletions

View File

@ -3,10 +3,10 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlinx-serialization'
ext {
extName = 'MangaMx'
extName = 'MangaOni'
pkgNameSuffix = 'es.mangamx'
extClass = '.MangaMx'
extVersionCode = 13
extClass = '.MangaOni'
extVersionCode = 14
isNsfw = true
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

View File

@ -29,11 +29,13 @@ import java.nio.charset.Charset
import java.text.SimpleDateFormat
import java.util.Locale
open class MangaMx : ConfigurableSource, ParsedHttpSource() {
open class MangaOni : ConfigurableSource, ParsedHttpSource() {
override val name = "MangaMx"
override val name = "MangaOni"
override val baseUrl = "https://manga-mx.com"
override val id: Long = 2202687009511923782
override val baseUrl = "https://manga-oni.com"
override val lang = "es"
@ -152,9 +154,12 @@ open class MangaMx : ConfigurableSource, ParsedHttpSource() {
return MangasPage(mangas, hasNextPage)
} else {
val result = json.decodeFromString<ResponseDto>(response.body!!.string())
if (result.mangaList.isEmpty()) throw Exception("Término de búsqueda demasiado corto")
val jsonString = response.body?.string().orEmpty()
val result = json.decodeFromString<ResponseDto>(jsonString)
if (result.mangaList.isEmpty()) {
return MangasPage(emptyList(), hasNextPage = false)
}
val mangaList = result.mangaList
.map(::searchMangaFromObject)