Updated the Mangaworld domain (#6567)

* Update Mangaworld.kt

* Update build.gradle
This commit is contained in:
fixx1983 2021-04-15 20:30:40 +02:00 committed by GitHub
parent 59ef23a023
commit ee52fad6e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Mangaworld' extName = 'Mangaworld'
pkgNameSuffix = 'it.mangaworld' pkgNameSuffix = 'it.mangaworld'
extClass = '.Mangaworld' extClass = '.Mangaworld'
extVersionCode = 3 extVersionCode = 4
libVersion = '1.2' libVersion = '1.2'
containsNsfw = true containsNsfw = true
} }

View File

@ -25,7 +25,7 @@ import java.util.Locale
class Mangaworld : ParsedHttpSource() { class Mangaworld : ParsedHttpSource() {
override val name = "Mangaworld" override val name = "Mangaworld"
override val baseUrl = "https://www.mangaworld.cc" override val baseUrl = "https://www.mangaworld.io"
override val lang = "it" override val lang = "it"
override val supportsLatest = true override val supportsLatest = true
override val client: OkHttpClient = network.cloudflareClient override val client: OkHttpClient = network.cloudflareClient
@ -151,8 +151,8 @@ class Mangaworld : ParsedHttpSource() {
val metaData = document.select("div.comic-info").first() val metaData = document.select("div.comic-info").first()
val manga = SManga.create() val manga = SManga.create()
manga.author = infoElement.select("a[href^=https://www.mangaworld.cc/archive?author=]").first()?.text() manga.author = infoElement.select("a[href^=https://www.mangaworld.io/archive?author=]").first()?.text()
manga.artist = infoElement.select("a[href^=https://www.mangaworld.cc/archive?artist=]")?.text() manga.artist = infoElement.select("a[href^=https://www.mangaworld.io/archive?artist=]")?.text()
val genres = mutableListOf<String>() val genres = mutableListOf<String>()
metaData.select("div.meta-data a.badge").forEach { element -> metaData.select("div.meta-data a.badge").forEach { element ->
@ -160,7 +160,7 @@ class Mangaworld : ParsedHttpSource() {
genres.add(genre) genres.add(genre)
} }
manga.genre = genres.joinToString(", ") manga.genre = genres.joinToString(", ")
manga.status = parseStatus(infoElement.select("a[href^=https://www.mangaworld.cc/archive?status=]").first().attr("href")) manga.status = parseStatus(infoElement.select("a[href^=https://www.mangaworld.io/archive?status=]").first().attr("href"))
manga.description = document.select("div#noidungm")?.text() manga.description = document.select("div#noidungm")?.text()
manga.thumbnail_url = document.select(".comic-info .thumb > img").attr("src") manga.thumbnail_url = document.select(".comic-info .thumb > img").attr("src")