Fix images not load DocTruyen3Q (#8272)
* Fix images not load DocTruyen3Q Fix images not load, update domain DocTruyen3Q * update
This commit is contained in:
		
							parent
							
								
									e64df9ebc4
								
							
						
					
					
						commit
						26eb2757b4
					
				| @ -2,8 +2,8 @@ ext { | |||||||
|     extName = 'DocTruyen3Q' |     extName = 'DocTruyen3Q' | ||||||
|     extClass = '.DocTruyen3Q' |     extClass = '.DocTruyen3Q' | ||||||
|     themePkg = 'wpcomics' |     themePkg = 'wpcomics' | ||||||
|     baseUrl = 'https://doctruyen3qui3.pro' |     baseUrl = 'https://doctruyen3qui5.pro' | ||||||
|     overrideVersionCode = 6 |     overrideVersionCode = 7 | ||||||
|     isNsfw = true |     isNsfw = true | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -23,7 +23,7 @@ import java.util.TimeZone | |||||||
| class DocTruyen3Q : | class DocTruyen3Q : | ||||||
|     WPComics( |     WPComics( | ||||||
|         "DocTruyen3Q", |         "DocTruyen3Q", | ||||||
|         "https://doctruyen3qui3.pro", |         "https://doctruyen3qui5.pro", | ||||||
|         "vi", |         "vi", | ||||||
|         dateFormat = SimpleDateFormat("dd-MM-yyyy", Locale.ROOT).apply { |         dateFormat = SimpleDateFormat("dd-MM-yyyy", Locale.ROOT).apply { | ||||||
|             timeZone = TimeZone.getTimeZone("Asia/Ho_Chi_Minh") |             timeZone = TimeZone.getTimeZone("Asia/Ho_Chi_Minh") | ||||||
| @ -37,11 +37,13 @@ class DocTruyen3Q : | |||||||
|         .build() |         .build() | ||||||
| 
 | 
 | ||||||
|     override fun pageListParse(document: Document): List<Page> { |     override fun pageListParse(document: Document): List<Page> { | ||||||
|         return document.select(".page-chapter[id] a img, .page-chapter[id] img").mapIndexed { index, element -> |         return document.select(".page-chapter[id] img").mapIndexed { index, element -> | ||||||
|             val img = if (element.hasAttr("data-original")) { |             val img = element.attr("abs:src").let { url -> | ||||||
|                 element.attr("abs:data-original") |                 if (url.startsWith("//")) { | ||||||
|  |                     "https:$url" | ||||||
|                 } else { |                 } else { | ||||||
|                 element.attr("abs:src") |                     url | ||||||
|  |                 } | ||||||
|             } |             } | ||||||
|             Page(index, imageUrl = img) |             Page(index, imageUrl = img) | ||||||
|         }.distinctBy { it.imageUrl } |         }.distinctBy { it.imageUrl } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Fioren
						Fioren