Bacakomik: fix pages issue, change icon (#13904)
* Bacakomik: fix pages issue, change icon - fix chapter pages - change icon - capitalize source name Closes #13894 * fix lint git cant detect file name change capitalize
|
@ -2,10 +2,10 @@ apply plugin: 'com.android.application'
|
||||||
apply plugin: 'kotlin-android'
|
apply plugin: 'kotlin-android'
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
extName = 'Bacakomik'
|
extName = 'BacaKomik'
|
||||||
pkgNameSuffix = 'id.bacakomik'
|
pkgNameSuffix = 'id.bacakomik'
|
||||||
extClass = '.Bacakomik'
|
extClass = '.BacaKomik'
|
||||||
extVersionCode = 3
|
extVersionCode = 4
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 134 KiB |
|
@ -18,13 +18,18 @@ import java.util.Calendar
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
|
||||||
class Bacakomik : ParsedHttpSource() {
|
class Bacakomik : ParsedHttpSource() {
|
||||||
override val name = "Bacakomik"
|
override val name = "BacaKomik"
|
||||||
override val baseUrl = "https://bacakomik.co"
|
override val baseUrl = "https://bacakomik.co"
|
||||||
override val lang = "id"
|
override val lang = "id"
|
||||||
override val supportsLatest = true
|
override val supportsLatest = true
|
||||||
override val client: OkHttpClient = network.cloudflareClient
|
override val client: OkHttpClient = network.cloudflareClient
|
||||||
private val dateFormat: SimpleDateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
|
private val dateFormat: SimpleDateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
|
||||||
|
|
||||||
|
// similar/modified theme of "https://komikindo.id"
|
||||||
|
|
||||||
|
// Formerly "Bacakomik" -> now "BacaKomik"
|
||||||
|
override val id = 4383360263234319058
|
||||||
|
|
||||||
override fun popularMangaRequest(page: Int): Request {
|
override fun popularMangaRequest(page: Int): Request {
|
||||||
return GET("$baseUrl/daftar-manga/page/$page/?order=popular", headers)
|
return GET("$baseUrl/daftar-manga/page/$page/?order=popular", headers)
|
||||||
}
|
}
|
||||||
|
@ -181,7 +186,7 @@ class Bacakomik : ParsedHttpSource() {
|
||||||
val pages = mutableListOf<Page>()
|
val pages = mutableListOf<Page>()
|
||||||
var i = 0
|
var i = 0
|
||||||
document.select("div.imgch-auh img").forEach { element ->
|
document.select("div.imgch-auh img").forEach { element ->
|
||||||
val url = element.attr("src")
|
val url = element.attr("onError").substringAfter("src='").substringBefore("';")
|
||||||
i++
|
i++
|
||||||
if (url.isNotEmpty()) {
|
if (url.isNotEmpty()) {
|
||||||
pages.add(Page(i, "", url))
|
pages.add(Page(i, "", url))
|
||||||
|
|
|
@ -24,6 +24,7 @@ class KomikIndoID : ParsedHttpSource() {
|
||||||
override val client: OkHttpClient = network.cloudflareClient
|
override val client: OkHttpClient = network.cloudflareClient
|
||||||
private val dateFormat: SimpleDateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
|
private val dateFormat: SimpleDateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
|
||||||
|
|
||||||
|
// similar/modified theme of "https://bacakomik.co"
|
||||||
override fun popularMangaRequest(page: Int): Request {
|
override fun popularMangaRequest(page: Int): Request {
|
||||||
return GET("$baseUrl/daftar-manga/page/$page/?order=popular", headers)
|
return GET("$baseUrl/daftar-manga/page/$page/?order=popular", headers)
|
||||||
}
|
}
|
||||||
|
|