Source URL Updates (#13214)
* Update URL Update the URL for LKDTT * Update HentaiVN * Update URL * Fix lateinit property title not initialized * Update NhatTruyen Update URL for NhatTruyen
This commit is contained in:
		
							parent
							
								
									b24d88df35
								
							
						
					
					
						commit
						97d48bdc3d
					
				@ -5,7 +5,7 @@ import java.text.SimpleDateFormat
 | 
			
		||||
import java.util.Locale
 | 
			
		||||
import java.util.TimeZone
 | 
			
		||||
 | 
			
		||||
class LKDTT : MyMangaCMS("LKDTT", "https://lkdtt.com", "vi") {
 | 
			
		||||
class LKDTT : MyMangaCMS("LKDTT", "https://lkdtt.net", "vi") {
 | 
			
		||||
    override val dateFormatter = SimpleDateFormat("dd/MM/yy", Locale.US).apply {
 | 
			
		||||
        timeZone = TimeZone.getTimeZone(super.timeZone)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -9,7 +9,7 @@ import okhttp3.Request
 | 
			
		||||
import java.text.SimpleDateFormat
 | 
			
		||||
import java.util.Locale
 | 
			
		||||
 | 
			
		||||
class NhatTruyen : WPComics("NhatTruyen", "http://www.nettruyenvip.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) {
 | 
			
		||||
class NhatTruyen : WPComics("NhatTruyen", "https://nhattruyenone.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) {
 | 
			
		||||
    override fun headersBuilder(): Headers.Builder = Headers.Builder()
 | 
			
		||||
    override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = GET("$baseUrl/the-loai?keyword=$query&page=$page", headers)
 | 
			
		||||
    override fun imageRequest(page: Page): Request = GET(page.imageUrl!!, headersBuilder().add("Referer", baseUrl).build())
 | 
			
		||||
 | 
			
		||||
@ -26,7 +26,7 @@ class MyMangaCMSGenerator : ThemeSourceGenerator {
 | 
			
		||||
            "PheManga",
 | 
			
		||||
            "phemanga",
 | 
			
		||||
        ),
 | 
			
		||||
        SingleLang("LKDTT", "https://lkdtt.com", "vi", true)
 | 
			
		||||
        SingleLang("LKDTT", "https://lkdtt.net", "vi", true, overrideVersionCode = 1)
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    companion object {
 | 
			
		||||
 | 
			
		||||
@ -15,7 +15,7 @@ class WPComicsGenerator : ThemeSourceGenerator {
 | 
			
		||||
    override val sources = listOf(
 | 
			
		||||
        MultiLang("MangaToro", "https://mangatoro.com", listOf("en", "ja"), overrideVersionCode = 1),
 | 
			
		||||
        SingleLang("NetTruyen", "http://www.nettruyenme.com", "vi", overrideVersionCode = 9),
 | 
			
		||||
        SingleLang("NhatTruyen", "http://www.nhattruyenvip.com", "vi", overrideVersionCode = 6),
 | 
			
		||||
        SingleLang("NhatTruyen", "https://nhattruyenone.com", "vi", overrideVersionCode = 7),
 | 
			
		||||
        SingleLang("TruyenChon", "http://truyenchon.com", "vi", overrideVersionCode = 3),
 | 
			
		||||
        SingleLang("XOXO Comics", "https://xoxocomics.com", "en", className = "XoxoComics", overrideVersionCode = 1),
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
@ -5,7 +5,7 @@ ext {
 | 
			
		||||
    extName = 'HentaiVN'
 | 
			
		||||
    pkgNameSuffix = 'vi.hentaivn'
 | 
			
		||||
    extClass = '.HentaiVN'
 | 
			
		||||
    extVersionCode = 13
 | 
			
		||||
    extVersionCode = 14
 | 
			
		||||
    isNsfw = true
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -23,7 +23,7 @@ import java.util.Locale
 | 
			
		||||
 | 
			
		||||
class HentaiVN : ParsedHttpSource() {
 | 
			
		||||
 | 
			
		||||
    override val baseUrl = "https://hentaivn.fun"
 | 
			
		||||
    override val baseUrl = "https://hentaivn.la"
 | 
			
		||||
    override val lang = "vi"
 | 
			
		||||
    override val name = "HentaiVN"
 | 
			
		||||
    override val supportsLatest = true
 | 
			
		||||
@ -99,6 +99,7 @@ class HentaiVN : ParsedHttpSource() {
 | 
			
		||||
    override fun mangaDetailsParse(document: Document): SManga {
 | 
			
		||||
        val infoElement = document.select(".main > .page-left > .left-info > .page-info")
 | 
			
		||||
        val manga = SManga.create()
 | 
			
		||||
        manga.title = infoElement.select("h1[itemprop=name] a").text()
 | 
			
		||||
        manga.author = infoElement.select("p:contains(Tác giả:) a").text()
 | 
			
		||||
        manga.description = infoElement.select(":root > p:contains(Nội dung:) + p").text()
 | 
			
		||||
        manga.genre = infoElement.select("p:contains(Thể loại:) a").joinToString { it.text() }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user