ARESNOV -> SCARManga: update domain (#2385)

* SCARManga: update domain, icons

* keep id

* remove redundant overrides
This commit is contained in:
Vetle Ledaal 2024-04-13 06:13:07 +00:00 committed by Draff
parent 6da99b2e55
commit a009e6b4d1
8 changed files with 19 additions and 45 deletions

View File

@ -1,9 +1,9 @@
ext {
extName = 'ARESNOV'
extClass = '.ARESNOV'
extName = 'SCARManga'
extClass = '.ScarManga'
themePkg = 'mangathemesia'
baseUrl = 'https://manhuascarlet.com'
overrideVersionCode = 1
baseUrl = 'https://scarmanga.com'
overrideVersionCode = 2
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -1,41 +0,0 @@
package eu.kanade.tachiyomi.extension.ar.aresnov
import android.util.Base64
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.source.model.Page
import kotlinx.serialization.json.jsonArray
import kotlinx.serialization.json.jsonPrimitive
import org.jsoup.nodes.Document
import java.lang.IllegalArgumentException
import java.text.SimpleDateFormat
import java.util.Locale
class ARESNOV : MangaThemesia(
"ARESNOV",
"https://manhuascarlet.com",
"ar",
mangaUrlDirectory = "/series",
dateFormat = SimpleDateFormat("MMMMM dd, yyyy", Locale("ar")),
) {
override val seriesAuthorSelector = ".imptdt:contains(المؤلف) i"
override val seriesArtistSelector = ".imptdt:contains(الرسام) i"
override val seriesTypeSelector = ".imptdt:contains(النوع) i"
override val seriesStatusSelector = ".imptdt:contains(الحالة) i"
override fun pageListParse(document: Document): List<Page> {
// "ts_reader.run({" in base64
val script = document.selectFirst("script[src^=data:text/javascript;base64,dHNfcmVhZGVyLnJ1bih7]")
?: return super.pageListParse(document)
val data = Base64.decode(script.attr("src").substringAfter("base64,"), Base64.DEFAULT).toString(Charsets.UTF_8)
val imageListJson = JSON_IMAGE_LIST_REGEX.find(data)?.destructured?.toList()?.get(0).orEmpty()
val imageList = try {
json.parseToJsonElement(imageListJson).jsonArray
} catch (_: IllegalArgumentException) {
emptyList()
}
return imageList.mapIndexed { i, jsonEl ->
Page(i, imageUrl = jsonEl.jsonPrimitive.content)
}
}
}

View File

@ -0,0 +1,15 @@
package eu.kanade.tachiyomi.extension.ar.aresnov
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import java.text.SimpleDateFormat
import java.util.Locale
class ScarManga : MangaThemesia(
"SCARManga",
"https://scarmanga.com",
"ar",
mangaUrlDirectory = "/series",
dateFormat = SimpleDateFormat("MMMMM dd, yyyy", Locale("ar")),
) {
override val id = 1046935749022479891
}