MangaWorld Domain Changing (#9310)

* Update Mangaworld.kt

Change only the domain of the site from https://www.mangaworld.io to https://www.mangaworld.in

* Update build.gradle

* Update Mangaworld.kt
This commit is contained in:
SmashBanana 2021-10-01 19:33:27 +02:00 committed by GitHub
parent 43ebb84f3c
commit 750fdbabf6
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'
pkgNameSuffix = 'it.mangaworld'
extClass = '.Mangaworld'
extVersionCode = 4
extVersionCode = 5
containsNsfw = true
}

View File

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