diff --git a/src/vi/doctruyen3q/build.gradle b/src/vi/doctruyen3q/build.gradle index 7daaf08be19..e98d526a817 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 5e98063b915..568fab6d302 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 d21a9825c0e..d10f5c8a71b 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 51642e89f5d..49c1fbc2d85 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()