fix tritiniascans (#5526)
This commit is contained in:
parent
b32647e702
commit
6774433790
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Madara (multiple sources)'
|
extName = 'Madara (multiple sources)'
|
||||||
pkgNameSuffix = "all.madara"
|
pkgNameSuffix = "all.madara"
|
||||||
extClass = '.MadaraFactory'
|
extClass = '.MadaraFactory'
|
||||||
extVersionCode = 174
|
extVersionCode = 175
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
containsNsfw = true
|
containsNsfw = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -353,21 +353,7 @@ class MangaClash : Madara(
|
||||||
dateFormat = SimpleDateFormat("MM/dd/yy", Locale.US)
|
dateFormat = SimpleDateFormat("MM/dd/yy", Locale.US)
|
||||||
)
|
)
|
||||||
|
|
||||||
class TritiniaScans : Madara("TritiniaScans", "https://tritiniaman.ga", "en") {
|
class TritiniaScans : Madara("TritiniaScans", "https://tritinia.com", "en")
|
||||||
// site is a bit broken
|
|
||||||
override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/manga/index_m_orderby=views.html", headers)
|
|
||||||
override fun popularMangaNextPageSelector(): String? = null
|
|
||||||
override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/manga/index_m_orderby=latest.html", headers)
|
|
||||||
override fun latestUpdatesNextPageSelector(): String? = null
|
|
||||||
private val imageRegex = Regex(""""(http[^"]*)"""")
|
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
|
||||||
val script = document.select("#chapter_preloaded_images").firstOrNull()?.data()
|
|
||||||
?: throw Exception("chapter_preloaded_images not found")
|
|
||||||
return imageRegex.findAll(script).asIterable().mapIndexed { i, mr ->
|
|
||||||
Page(i, "", mr.groupValues[1].replace("\\", ""))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class CopyPasteScan : Madara("CopyPasteScan", "https://copypastescan.xyz", "es")
|
class CopyPasteScan : Madara("CopyPasteScan", "https://copypastescan.xyz", "es")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue