Update TopTruyen & DocTruyen3Q (#7193)

update

- Update domain TopTruyen & DocTruyen3Q
- Fix timezone Toptruyen
- Fix blank thumbnail Doctruyen3Q
This commit is contained in:
Fioren 2025-01-17 22:33:04 +07:00 committed by Draff
parent 3766a24892
commit 924e064e42
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
4 changed files with 12 additions and 9 deletions

View File

@ -2,8 +2,8 @@ ext {
extName = 'DocTruyen3Q' extName = 'DocTruyen3Q'
extClass = '.DocTruyen3Q' extClass = '.DocTruyen3Q'
themePkg = 'wpcomics' themePkg = 'wpcomics'
baseUrl = 'https://doctruyen3q3.net' baseUrl = 'https://doctruyen3qui.com'
overrideVersionCode = 1 overrideVersionCode = 2
isNsfw = true isNsfw = true
} }

View File

@ -17,7 +17,7 @@ import java.util.TimeZone
class DocTruyen3Q : WPComics( class DocTruyen3Q : WPComics(
"DocTruyen3Q", "DocTruyen3Q",
"https://doctruyen3q3.net", "https://doctruyen3qui.com",
"vi", "vi",
dateFormat = SimpleDateFormat("dd-MM-yyyy", Locale.ROOT).apply { dateFormat = SimpleDateFormat("dd-MM-yyyy", Locale.ROOT).apply {
timeZone = TimeZone.getTimeZone("Asia/Ho_Chi_Minh") timeZone = TimeZone.getTimeZone("Asia/Ho_Chi_Minh")
@ -42,7 +42,7 @@ class DocTruyen3Q : WPComics(
title = it.text() title = it.text()
setUrlWithoutDomain(it.attr("abs:href")) setUrlWithoutDomain(it.attr("abs:href"))
} }
thumbnail_url = element.selectFirst("img")?.attr("abs:src") thumbnail_url = imageOrNull(element.selectFirst("img")!!)
} }
override fun searchMangaSelector() = popularMangaSelector() override fun searchMangaSelector() = popularMangaSelector()
@ -73,7 +73,7 @@ class DocTruyen3Q : WPComics(
description = document.selectFirst("p.detail-summary")?.text() description = document.selectFirst("p.detail-summary")?.text()
status = document.selectFirst("li.status p.detail-info span")?.text().toStatus() status = document.selectFirst("li.status p.detail-info span")?.text().toStatus()
genre = document.select("li.category p.detail-info a")?.joinToString { it.text() } genre = document.select("li.category p.detail-info a")?.joinToString { it.text() }
thumbnail_url = document.selectFirst("img.image-comic")?.attr("abs:src") thumbnail_url = imageOrNull(document.selectFirst("img.image-comic")!!)
} }
override fun chapterListSelector() = "div.list-chapter li.row:not(.heading):not([style])" override fun chapterListSelector() = "div.list-chapter li.row:not(.heading):not([style])"

View File

@ -2,8 +2,8 @@ ext {
extName = 'Top Truyen' extName = 'Top Truyen'
extClass = '.TopTruyen' extClass = '.TopTruyen'
themePkg = 'wpcomics' themePkg = 'wpcomics'
baseUrl = 'https://www.toptruyen28.net' baseUrl = 'https://www.toptruyentv.net'
overrideVersionCode = 5 overrideVersionCode = 6
isNsfw = true isNsfw = true
} }

View File

@ -13,12 +13,15 @@ import org.jsoup.nodes.Document
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.Locale import java.util.Locale
import java.util.TimeZone
class TopTruyen : WPComics( class TopTruyen : WPComics(
"Top Truyen", "Top Truyen",
"https://www.toptruyen28.net", "https://www.toptruyentv.net",
"vi", "vi",
dateFormat = SimpleDateFormat("dd-MM-yyyy", Locale.getDefault()), dateFormat = SimpleDateFormat("dd-MM-yyyy", Locale.ROOT).apply {
timeZone = TimeZone.getTimeZone("Asia/Ho_Chi_Minh")
},
gmtOffset = null, gmtOffset = null,
) { ) {
override val client = super.client.newBuilder() override val client = super.client.newBuilder()