Skip to content

Commit

Permalink
[site/vi] Change sources domain
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonx943 committed Dec 31, 2024
1 parent b1b04d2 commit d8bd51e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import org.koitharu.kotatsu.parsers.site.madara.MadaraParser

@MangaSourceParser("TRUYENVN", "TruyenVn", "vi", ContentType.HENTAI)
internal class TruyenVn(context: MangaLoaderContext) :
MadaraParser(context, MangaParserSource.TRUYENVN, "truyenvn.live", 20) {
MadaraParser(context, MangaParserSource.TRUYENVN, "truyenvn.la", 20) {
override val listUrl = "truyen-tranh/"
override val tagPrefix = "the-loai/"
override val datePattern = "dd/MM/yyyy"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ internal class CMangaParser(context: MangaLoaderContext) :
PagedMangaParser(context, MangaParserSource.CMANGA, PAGE_SIZE), MangaParserAuthProvider {

override val configKeyDomain: ConfigKey.Domain
get() = ConfigKey.Domain("cmangal.com")
get() = ConfigKey.Domain("cmangam.com")

override val availableSortOrders: Set<SortOrder>
get() = EnumSet.of(SortOrder.UPDATED, SortOrder.POPULARITY, SortOrder.NEWEST)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal class DuaLeoTruyen(context: MangaLoaderContext) :
PagedMangaParser(context, MangaParserSource.DUALEOTRUYEN, 60) {

override val configKeyDomain: ConfigKey.Domain
get() = ConfigKey.Domain("dualeotruyenomega.com")
get() = ConfigKey.Domain("dualeotruyenalpha.com")

override val userAgentKey = ConfigKey.UserAgent(UserAgents.CHROME_DESKTOP)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import java.util.*
@MangaSourceParser("YURINEKO", "YuriNeko", "vi", ContentType.HENTAI)
internal class YurinekoParser(context: MangaLoaderContext) : PagedMangaParser(context, MangaParserSource.YURINEKO, 20) {
override val configKeyDomain: ConfigKey.Domain
get() = ConfigKey.Domain("yurineko.my")
get() = ConfigKey.Domain("yurineko.click")

override fun onCreateConfig(keys: MutableCollection<ConfigKey<*>>) {
super.onCreateConfig(keys)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import java.util.*

@MangaSourceParser("DOCTRUYEN3Q", "DocTruyen3Q", "vi")
internal class DocTruyen3Q(context: MangaLoaderContext) :
WpComicsParser(context, MangaParserSource.DOCTRUYEN3Q, "doctruyen3qw.com", 36) {
WpComicsParser(context, MangaParserSource.DOCTRUYEN3Q, "doctruyen3q3.net", 36) {

override val configKeyDomain: ConfigKey.Domain = ConfigKey.Domain(
"doctruyen3qw.com", "doctruyen3qk.pro", "doctruyen3qw.pro", "doctruyen3qvip.com", "truyen3qvip.com",
"doctruyen3q3.net", "doctruyen3qw.com", "doctruyen3qk.pro", "doctruyen3qw.pro", "doctruyen3qvip.com", "truyen3qvip.com",
)

override val datePattern = "dd/MM/yyyy"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import java.util.*

@MangaSourceParser("NETTRUYEN", "NetTruyen", "vi")
internal class NetTruyen(context: MangaLoaderContext) :
WpComicsParser(context, MangaParserSource.NETTRUYEN, "nettruyenww.com", 44) {
WpComicsParser(context, MangaParserSource.NETTRUYEN, "nettruyenrr.com", 44) {

override val configKeyDomain: ConfigKey.Domain = ConfigKey.Domain("nettruyenww.com", "nettruyenx.com")
override val configKeyDomain: ConfigKey.Domain = ConfigKey.Domain("nettruyenrr.com", "nettruyenww.com", "nettruyenx.com")

override suspend fun getDetails(manga: Manga): Manga = coroutineScope {
val fullUrl = manga.url.toAbsoluteUrl(domain)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ import java.util.*

@MangaSourceParser("TOPTRUYEN", "TopTruyen", "vi")
internal class TopTruyen(context: MangaLoaderContext) :
WpComicsParser(context, MangaParserSource.TOPTRUYEN, "www.toptruyenpro1.com", 36) {
WpComicsParser(context, MangaParserSource.TOPTRUYEN, "www.toptruyen28.net", 36) {

override val configKeyDomain = ConfigKey.Domain(
"www.toptruyen28.net",
"www.toptruyento.pro",
"www.toptruyenpro1.com",
)
Expand Down

0 comments on commit d8bd51e

Please sign in to comment.