MangaMx: Moved to MangaOni (#14739)
* MangaMX: Moved to MangaOni * MangaMX: Moved to MangaOni * Update Logo * Apply requested changes
This commit is contained in:
parent
37e0751759
commit
65a442d6b7
src/es/mangamx
build.gradle
res
src/eu/kanade/tachiyomi/extension/es/mangamx
@ -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 ![]() (image error) Size: 3.3 KiB After ![]() (image error) Size: 9.5 KiB ![]() ![]() |
Binary file not shown.
Before ![]() (image error) Size: 1.8 KiB After ![]() (image error) Size: 4.6 KiB ![]() ![]() |
Binary file not shown.
Before ![]() (image error) Size: 4.2 KiB After ![]() (image error) Size: 15 KiB ![]() ![]() |
Binary file not shown.
Before ![]() (image error) Size: 8.6 KiB After ![]() (image error) Size: 29 KiB ![]() ![]() |
Binary file not shown.
Before ![]() (image error) Size: 11 KiB After ![]() (image error) Size: 46 KiB ![]() ![]() |
Binary file not shown.
Before ![]() (image error) Size: 49 KiB |
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user