From 924e064e42ca23a19fb0c48aa80fd2be4fce38a3 Mon Sep 17 00:00:00 2001 From: Fioren <102145692+FiorenMas@users.noreply.github.com> Date: Fri, 17 Jan 2025 22:33:04 +0700 Subject: [PATCH] Update TopTruyen & DocTruyen3Q (#7193) update - Update domain TopTruyen & DocTruyen3Q - Fix timezone Toptruyen - Fix blank thumbnail Doctruyen3Q --- src/vi/doctruyen3q/build.gradle | 4 ++-- .../tachiyomi/extension/vi/doctruyen3q/DocTruyen3Q.kt | 6 +++--- src/vi/toptruyen/build.gradle | 4 ++-- .../kanade/tachiyomi/extension/vi/toptruyen/TopTruyen.kt | 7 +++++-- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/vi/doctruyen3q/build.gradle b/src/vi/doctruyen3q/build.gradle index 7daaf08be..e98d526a8 100644 --- a/src/vi/doctruyen3q/build.gradle +++ b/src/vi/doctruyen3q/build.gradle @@ -2,8 +2,8 @@ ext { extName = 'DocTruyen3Q' extClass = '.DocTruyen3Q' themePkg = 'wpcomics' - baseUrl = 'https://doctruyen3q3.net' - overrideVersionCode = 1 + baseUrl = 'https://doctruyen3qui.com' + overrideVersionCode = 2 isNsfw = true } diff --git a/src/vi/doctruyen3q/src/eu/kanade/tachiyomi/extension/vi/doctruyen3q/DocTruyen3Q.kt b/src/vi/doctruyen3q/src/eu/kanade/tachiyomi/extension/vi/doctruyen3q/DocTruyen3Q.kt index 5e98063b9..568fab6d3 100644 --- a/src/vi/doctruyen3q/src/eu/kanade/tachiyomi/extension/vi/doctruyen3q/DocTruyen3Q.kt +++ b/src/vi/doctruyen3q/src/eu/kanade/tachiyomi/extension/vi/doctruyen3q/DocTruyen3Q.kt @@ -17,7 +17,7 @@ import java.util.TimeZone class DocTruyen3Q : WPComics( "DocTruyen3Q", - "https://doctruyen3q3.net", + "https://doctruyen3qui.com", "vi", dateFormat = SimpleDateFormat("dd-MM-yyyy", Locale.ROOT).apply { timeZone = TimeZone.getTimeZone("Asia/Ho_Chi_Minh") @@ -42,7 +42,7 @@ class DocTruyen3Q : WPComics( title = it.text() setUrlWithoutDomain(it.attr("abs:href")) } - thumbnail_url = element.selectFirst("img")?.attr("abs:src") + thumbnail_url = imageOrNull(element.selectFirst("img")!!) } override fun searchMangaSelector() = popularMangaSelector() @@ -73,7 +73,7 @@ class DocTruyen3Q : WPComics( description = document.selectFirst("p.detail-summary")?.text() status = document.selectFirst("li.status p.detail-info span")?.text().toStatus() 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])" diff --git a/src/vi/toptruyen/build.gradle b/src/vi/toptruyen/build.gradle index d21a9825c..d10f5c8a7 100644 --- a/src/vi/toptruyen/build.gradle +++ b/src/vi/toptruyen/build.gradle @@ -2,8 +2,8 @@ ext { extName = 'Top Truyen' extClass = '.TopTruyen' themePkg = 'wpcomics' - baseUrl = 'https://www.toptruyen28.net' - overrideVersionCode = 5 + baseUrl = 'https://www.toptruyentv.net' + overrideVersionCode = 6 isNsfw = true } diff --git a/src/vi/toptruyen/src/eu/kanade/tachiyomi/extension/vi/toptruyen/TopTruyen.kt b/src/vi/toptruyen/src/eu/kanade/tachiyomi/extension/vi/toptruyen/TopTruyen.kt index 51642e89f..49c1fbc2d 100644 --- a/src/vi/toptruyen/src/eu/kanade/tachiyomi/extension/vi/toptruyen/TopTruyen.kt +++ b/src/vi/toptruyen/src/eu/kanade/tachiyomi/extension/vi/toptruyen/TopTruyen.kt @@ -13,12 +13,15 @@ import org.jsoup.nodes.Document import org.jsoup.nodes.Element import java.text.SimpleDateFormat import java.util.Locale +import java.util.TimeZone class TopTruyen : WPComics( "Top Truyen", - "https://www.toptruyen28.net", + "https://www.toptruyentv.net", "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, ) { override val client = super.client.newBuilder()