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
This commit is contained in:
Riztard Lanthorn 2022-10-19 02:21:27 +07:00 committed by GitHub
parent 310a418f1e
commit d21bb3ec00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 11 additions and 5 deletions

View File

@ -2,10 +2,10 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
ext {
extName = 'Bacakomik'
extName = 'BacaKomik'
pkgNameSuffix = 'id.bacakomik'
extClass = '.Bacakomik'
extVersionCode = 3
extClass = '.BacaKomik'
extVersionCode = 4
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 134 KiB

View File

@ -18,13 +18,18 @@ import java.util.Calendar
import java.util.Locale
class Bacakomik : ParsedHttpSource() {
override val name = "Bacakomik"
override val name = "BacaKomik"
override val baseUrl = "https://bacakomik.co"
override val lang = "id"
override val supportsLatest = true
override val client: OkHttpClient = network.cloudflareClient
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 {
return GET("$baseUrl/daftar-manga/page/$page/?order=popular", headers)
}
@ -181,7 +186,7 @@ class Bacakomik : ParsedHttpSource() {
val pages = mutableListOf<Page>()
var i = 0
document.select("div.imgch-auh img").forEach { element ->
val url = element.attr("src")
val url = element.attr("onError").substringAfter("src='").substringBefore("';")
i++
if (url.isNotEmpty()) {
pages.add(Page(i, "", url))

View File

@ -24,6 +24,7 @@ class KomikIndoID : ParsedHttpSource() {
override val client: OkHttpClient = network.cloudflareClient
private val dateFormat: SimpleDateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US)
// similar/modified theme of "https://bacakomik.co"
override fun popularMangaRequest(page: Int): Request {
return GET("$baseUrl/daftar-manga/page/$page/?order=popular", headers)
}