Skip to content

Commit

Permalink
Update TopTruyen & DocTruyen3Q (#7193)
Browse files Browse the repository at this point in the history
update

- Update domain TopTruyen & DocTruyen3Q
- Fix timezone Toptruyen
- Fix blank thumbnail Doctruyen3Q
  • Loading branch information
FiorenMas authored Jan 17, 2025
1 parent 06eea13 commit ca5651f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/vi/doctruyen3q/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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()
Expand Down Expand Up @@ -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])"
Expand Down
4 changes: 2 additions & 2 deletions src/vi/toptruyen/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ca5651f

Please sign in to comment.