mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Fallback batoto urls to http (a library update took ages). Kotlin update to 1.1.3
This commit is contained in:
		| @@ -161,6 +161,18 @@ class Batoto : ParsedHttpSource(), LoginSource { | ||||
|         else -> SManga.UNKNOWN | ||||
|     } | ||||
|  | ||||
|     override fun chapterListRequest(manga: SManga): Request { | ||||
|         // Https is currently very slow. The replace also saves a redirection. | ||||
|         var newUrl = "http://bato.to" + manga.url | ||||
|         if ("/comic/_/comics/" !in newUrl) { | ||||
|             newUrl = newUrl.replace("/comic/_/", "/comic/_/comics/") | ||||
|         } | ||||
|  | ||||
|         return super.chapterListRequest(manga).newBuilder() | ||||
|                 .url(newUrl) | ||||
|                 .build() | ||||
|     } | ||||
|  | ||||
|     override fun chapterListParse(response: Response): List<SChapter> { | ||||
|         val body = response.body()!!.string() | ||||
|         val matcher = staffNotice.matcher(body) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user