Small fixes for 3 sources (#8492)

* TruyenQQ: Update base domain

* MangaAe: Update chapter url

* Sisi Gelap: Update url
This commit is contained in:
Arraiment 2021-08-09 20:06:42 +08:00 committed by GitHub
parent 4afb9dea21
commit e850a60f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 9 deletions

View File

@ -314,7 +314,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Reset Scans", "https://reset-scans.com", "en", overrideVersionCode = 3), SingleLang("Reset Scans", "https://reset-scans.com", "en", overrideVersionCode = 3),
SingleLang("Rüya Manga", "https://www.ruyamanga.com", "tr", className = "RuyaManga", overrideVersionCode = 1), SingleLang("Rüya Manga", "https://www.ruyamanga.com", "tr", className = "RuyaManga", overrideVersionCode = 1),
SingleLang("S2Manga", "https://s2manga.com", "en", 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("SamuraiScan", "https://samuraiscan.com", "es"),
SingleLang("Sani-Go", "https://sani-go.net", "ar", className = "SaniGo", overrideVersionCode = 1), SingleLang("Sani-Go", "https://sani-go.net", "ar", className = "SaniGo", overrideVersionCode = 1),
SingleLang("Sawamics", "https://sawamics.com", "en"), SingleLang("Sawamics", "https://sawamics.com", "en"),

View File

@ -5,7 +5,7 @@ ext {
extName = 'Manga.ae' extName = 'Manga.ae'
pkgNameSuffix = 'ar.mangaae' pkgNameSuffix = 'ar.mangaae'
extClass = '.MangaAe' extClass = '.MangaAe'
extVersionCode = 7 extVersionCode = 8
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -125,7 +125,7 @@ class MangaAe : ParsedHttpSource() {
val chapter = SChapter.create() val chapter = SChapter.create()
element.select("a").let { element.select("a").let {
// use full pages for easier links // 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 chapter.name = "\u061C" + it.text() // Add unicode ARABIC LETTER MARK to ensure all titles are right to left
} }
return chapter return chapter

View File

@ -5,7 +5,7 @@ ext {
extName = 'TruyenQQ' extName = 'TruyenQQ'
pkgNameSuffix = 'vi.truyenqq' pkgNameSuffix = 'vi.truyenqq'
extClass = '.TruyenQQ' extClass = '.TruyenQQ'
extVersionCode = 3 extVersionCode = 4
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -17,16 +17,21 @@ import java.util.Locale
import java.util.concurrent.TimeUnit import java.util.concurrent.TimeUnit
class TruyenQQ : ParsedHttpSource() { class TruyenQQ : ParsedHttpSource() {
override val name: String = "TruyenQQ" override val name: String = "TruyenQQ"
override val lang: String = "vi" 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 supportsLatest: Boolean = true
override val client: OkHttpClient = network.cloudflareClient.newBuilder() override val client: OkHttpClient = network.cloudflareClient.newBuilder()
.connectTimeout(1, TimeUnit.MINUTES) .connectTimeout(1, TimeUnit.MINUTES)
.readTimeout(1, TimeUnit.MINUTES) .readTimeout(1, TimeUnit.MINUTES)
.retryOnConnectionFailure(true) .retryOnConnectionFailure(true)
.followRedirects(true) .followRedirects(true)
.build()!! .build()
override fun headersBuilder(): Headers.Builder { override fun headersBuilder(): Headers.Builder {
return super.headersBuilder().add("Referer", baseUrl) return super.headersBuilder().add("Referer", baseUrl)
@ -36,7 +41,7 @@ class TruyenQQ : ParsedHttpSource() {
override fun popularMangaRequest(page: Int): Request { override fun popularMangaRequest(page: Int): Request {
return GET("$baseUrl/top-thang/trang-$page.html", headers) 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 popularMangaSelector(): String = "div.story-item"
override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply { override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply {
setUrlWithoutDomain(element.select("a").first().attr("abs:href")) setUrlWithoutDomain(element.select("a").first().attr("abs:href"))
@ -48,7 +53,7 @@ class TruyenQQ : ParsedHttpSource() {
override fun latestUpdatesRequest(page: Int): Request { override fun latestUpdatesRequest(page: Int): Request {
return GET("$baseUrl/truyen-moi-cap-nhat/trang-$page.html", headers) 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 latestUpdatesSelector(): String = popularMangaSelector()
override fun latestUpdatesFromElement(element: Element): SManga = popularMangaFromElement(element) override fun latestUpdatesFromElement(element: Element): SManga = popularMangaFromElement(element)
@ -60,7 +65,7 @@ class TruyenQQ : ParsedHttpSource() {
// Todo Filters // Todo Filters
} }
override fun searchMangaNextPageSelector(): String? = popularMangaNextPageSelector() override fun searchMangaNextPageSelector(): String = popularMangaNextPageSelector()
override fun searchMangaSelector(): String = popularMangaSelector() override fun searchMangaSelector(): String = popularMangaSelector()
override fun searchMangaFromElement(element: Element): SManga = popularMangaFromElement(element) override fun searchMangaFromElement(element: Element): SManga = popularMangaFromElement(element)