Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
Issue #44 NetTruyen: URL Change Request
Browse files Browse the repository at this point in the history
NetTruyen URL Changed
  • Loading branch information
sandeepjak2007 committed Jan 31, 2024
1 parent 6c84979 commit 098d232
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion multisrc/overrides/wpcomics/nettruyen/src/NetTruyen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import okhttp3.Request
import java.text.SimpleDateFormat
import java.util.Locale

class NetTruyen : WPComics("NetTruyen", "https://www.nettruyenclub.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) {
class NetTruyen : WPComics("NetTruyen", "https://www.nettruyenss.com/", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) {
override fun headersBuilder(): Headers.Builder = Headers.Builder()
override fun imageRequest(page: Page): Request = GET(page.imageUrl!!, headersBuilder().add("Referer", baseUrl).build())
override fun getFilterList(): FilterList {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ class OtakuSanctuaryHelper(private val lang: String) {
url = url.replace("file-comic-99.anyacg.co/uploads", "file-bato-0001.bato.to")
}
}
if (url.contains("cdn.nettruyenclub.com")) {
if (url.contains("cdn.nettruyenss.com")) {
url = url.replace(
"cdn.nettruyenclub.com/Data/Images/",
"cdn.nettruyenss.com/Data/Images/",
"truyen.cloud/data/images/",
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class WPComicsGenerator : ThemeSourceGenerator {
override val baseVersionCode: Int = 2

override val sources = listOf(
SingleLang("NetTruyen", "https://www.nettruyenclub.com", "vi", overrideVersionCode = 20),
SingleLang("NetTruyen", "https://www.nettruyenss.com/", "vi", overrideVersionCode = 20),
SingleLang("NhatTruyen", "https://nhattruyenmax.com", "vi", overrideVersionCode = 13),
SingleLang("TruyenChon", "http://truyenchon.com", "vi", overrideVersionCode = 3),
SingleLang("XOXO Comics", "https://xoxocomics.net", "en", className = "XoxoComics", overrideVersionCode = 2),
Expand Down

0 comments on commit 098d232

Please sign in to comment.