Update scrambled images on webtoon (#1209)
Update scrambled images on webtoon
This commit is contained in:
		
							parent
							
								
									ffb5fbd356
								
							
						
					
					
						commit
						f27da3e9cb
					
				| @ -5,7 +5,7 @@ ext { | |||||||
|     appName = 'Tachiyomi: Japscan' |     appName = 'Tachiyomi: Japscan' | ||||||
|     pkgNameSuffix = 'fr.japscan' |     pkgNameSuffix = 'fr.japscan' | ||||||
|     extClass = '.Japscan' |     extClass = '.Japscan' | ||||||
|     extVersionCode = 10 |     extVersionCode = 11 | ||||||
|     libVersion = '1.2' |     libVersion = '1.2' | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -187,7 +187,7 @@ class Japscan : ParsedHttpSource() { | |||||||
|     override fun pageListParse(document: Document): List<Page> { |     override fun pageListParse(document: Document): List<Page> { | ||||||
|         val pages = mutableListOf<Page>() |         val pages = mutableListOf<Page>() | ||||||
|         val imagePath = "(.*\\/).*".toRegex().find(document.select("#image").attr("data-src")) |         val imagePath = "(.*\\/).*".toRegex().find(document.select("#image").attr("data-src")) | ||||||
|         val imageScrambled = if (!document.select("script[src^='/js/iYFbYi_']").isNullOrEmpty()) "&decodeImage" else "" |         val imageScrambled = if (!document.select("script[src^='/js/iYFbYi_U']").isNullOrEmpty()) "&decodeImage" else "" | ||||||
| 
 | 
 | ||||||
|         document.select("select#pages").first()?.select("option")?.forEach { |         document.select("select#pages").first()?.select("option")?.forEach { | ||||||
|             pages.add(Page(pages.size, "", "${imagePath?.groupValues?.get(1)}${it.attr("data-img")}$imageScrambled")) |             pages.add(Page(pages.size, "", "${imagePath?.groupValues?.get(1)}${it.attr("data-img")}$imageScrambled")) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Rublood
						Rublood