Small fixes for 3 sources (#8492)
* TruyenQQ: Update base domain * MangaAe: Update chapter url * Sisi Gelap: Update url
This commit is contained in:
parent
4afb9dea21
commit
e850a60f98
|
@ -314,7 +314,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
|||
SingleLang("Reset Scans", "https://reset-scans.com", "en", overrideVersionCode = 3),
|
||||
SingleLang("Rüya Manga", "https://www.ruyamanga.com", "tr", className = "RuyaManga", overrideVersionCode = 1),
|
||||
SingleLang("S2Manga", "https://s2manga.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("SISI GELAP", "https://baru.sisigelap.club/", "id", overrideVersionCode = 2),
|
||||
SingleLang("SISI GELAP", "https://sigel.xyz", "id", overrideVersionCode = 3),
|
||||
SingleLang("SamuraiScan", "https://samuraiscan.com", "es"),
|
||||
SingleLang("Sani-Go", "https://sani-go.net", "ar", className = "SaniGo", overrideVersionCode = 1),
|
||||
SingleLang("Sawamics", "https://sawamics.com", "en"),
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Manga.ae'
|
||||
pkgNameSuffix = 'ar.mangaae'
|
||||
extClass = '.MangaAe'
|
||||
extVersionCode = 7
|
||||
extVersionCode = 8
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ class MangaAe : ParsedHttpSource() {
|
|||
val chapter = SChapter.create()
|
||||
element.select("a").let {
|
||||
// use full pages for easier links
|
||||
chapter.setUrlWithoutDomain(it.attr("href").removeSuffix("/1/") + "/0/full")
|
||||
chapter.setUrlWithoutDomain(it.attr("href").removeSuffix("/1/") + "/0/fully")
|
||||
chapter.name = "\u061C" + it.text() // Add unicode ARABIC LETTER MARK to ensure all titles are right to left
|
||||
}
|
||||
return chapter
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'TruyenQQ'
|
||||
pkgNameSuffix = 'vi.truyenqq'
|
||||
extClass = '.TruyenQQ'
|
||||
extVersionCode = 3
|
||||
extVersionCode = 4
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -17,16 +17,21 @@ import java.util.Locale
|
|||
import java.util.concurrent.TimeUnit
|
||||
|
||||
class TruyenQQ : ParsedHttpSource() {
|
||||
|
||||
override val name: String = "TruyenQQ"
|
||||
|
||||
override val lang: String = "vi"
|
||||
override val baseUrl: String = "https://truyenqq.com"
|
||||
|
||||
override val baseUrl: String = "https://truyenqq.net"
|
||||
|
||||
override val supportsLatest: Boolean = true
|
||||
|
||||
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
||||
.connectTimeout(1, TimeUnit.MINUTES)
|
||||
.readTimeout(1, TimeUnit.MINUTES)
|
||||
.retryOnConnectionFailure(true)
|
||||
.followRedirects(true)
|
||||
.build()!!
|
||||
.build()
|
||||
|
||||
override fun headersBuilder(): Headers.Builder {
|
||||
return super.headersBuilder().add("Referer", baseUrl)
|
||||
|
@ -36,7 +41,7 @@ class TruyenQQ : ParsedHttpSource() {
|
|||
override fun popularMangaRequest(page: Int): Request {
|
||||
return GET("$baseUrl/top-thang/trang-$page.html", headers)
|
||||
}
|
||||
override fun popularMangaNextPageSelector(): String? = "a.pagination-link:contains(›)"
|
||||
override fun popularMangaNextPageSelector(): String = "a.pagination-link:contains(›)"
|
||||
override fun popularMangaSelector(): String = "div.story-item"
|
||||
override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply {
|
||||
setUrlWithoutDomain(element.select("a").first().attr("abs:href"))
|
||||
|
@ -48,7 +53,7 @@ class TruyenQQ : ParsedHttpSource() {
|
|||
override fun latestUpdatesRequest(page: Int): Request {
|
||||
return GET("$baseUrl/truyen-moi-cap-nhat/trang-$page.html", headers)
|
||||
}
|
||||
override fun latestUpdatesNextPageSelector(): String? = popularMangaNextPageSelector()
|
||||
override fun latestUpdatesNextPageSelector(): String = popularMangaNextPageSelector()
|
||||
override fun latestUpdatesSelector(): String = popularMangaSelector()
|
||||
override fun latestUpdatesFromElement(element: Element): SManga = popularMangaFromElement(element)
|
||||
|
||||
|
@ -60,7 +65,7 @@ class TruyenQQ : ParsedHttpSource() {
|
|||
|
||||
// Todo Filters
|
||||
}
|
||||
override fun searchMangaNextPageSelector(): String? = popularMangaNextPageSelector()
|
||||
override fun searchMangaNextPageSelector(): String = popularMangaNextPageSelector()
|
||||
override fun searchMangaSelector(): String = popularMangaSelector()
|
||||
override fun searchMangaFromElement(element: Element): SManga = popularMangaFromElement(element)
|
||||
|
||||
|
|
Loading…
Reference in New Issue