diff --git a/src/es/mangamx/build.gradle b/src/es/mangamx/build.gradle index acae50923..b6c79582c 100644 --- a/src/es/mangamx/build.gradle +++ b/src/es/mangamx/build.gradle @@ -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 } diff --git a/src/es/mangamx/res/mipmap-hdpi/ic_launcher.png b/src/es/mangamx/res/mipmap-hdpi/ic_launcher.png index 0e382f8ab..ac2df75e1 100644 Binary files a/src/es/mangamx/res/mipmap-hdpi/ic_launcher.png and b/src/es/mangamx/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/es/mangamx/res/mipmap-mdpi/ic_launcher.png b/src/es/mangamx/res/mipmap-mdpi/ic_launcher.png index bb570088f..cfc7d1bdf 100644 Binary files a/src/es/mangamx/res/mipmap-mdpi/ic_launcher.png and b/src/es/mangamx/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/es/mangamx/res/mipmap-xhdpi/ic_launcher.png b/src/es/mangamx/res/mipmap-xhdpi/ic_launcher.png index 814428b91..8b0bf76b7 100644 Binary files a/src/es/mangamx/res/mipmap-xhdpi/ic_launcher.png and b/src/es/mangamx/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/es/mangamx/res/mipmap-xxhdpi/ic_launcher.png b/src/es/mangamx/res/mipmap-xxhdpi/ic_launcher.png index a63f718f5..ec41d0454 100644 Binary files a/src/es/mangamx/res/mipmap-xxhdpi/ic_launcher.png and b/src/es/mangamx/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/es/mangamx/res/mipmap-xxxhdpi/ic_launcher.png b/src/es/mangamx/res/mipmap-xxxhdpi/ic_launcher.png index 3d6c88f7c..e42f5f9f8 100644 Binary files a/src/es/mangamx/res/mipmap-xxxhdpi/ic_launcher.png and b/src/es/mangamx/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/es/mangamx/res/web_hi_res_512.png b/src/es/mangamx/res/web_hi_res_512.png deleted file mode 100644 index 3ef98e636..000000000 Binary files a/src/es/mangamx/res/web_hi_res_512.png and /dev/null differ diff --git a/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaMx.kt b/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaOni.kt similarity index 96% rename from src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaMx.kt rename to src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaOni.kt index 26f1a2290..2cbd1915a 100644 --- a/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaMx.kt +++ b/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaOni.kt @@ -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(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(jsonString) + if (result.mangaList.isEmpty()) { + return MangasPage(emptyList(), hasNextPage = false) + } val mangaList = result.mangaList .map(::searchMangaFromObject)