[Cubari] Cleanup chapter titles (#19117)
* Avoid stray hyphen on chapter title if it has no name * Fix typo and add explanation to README Remove CHANGELOG * Check and ignore empty string passed as Volume number
This commit is contained in:
parent
474bf17c51
commit
76d9997262
|
@ -1,67 +0,0 @@
|
|||
## 1.2.11
|
||||
|
||||
### Features
|
||||
|
||||
* Add `CHANGELOG.md` & `README.md`
|
||||
|
||||
## 1.2.10
|
||||
|
||||
### Features
|
||||
|
||||
* Wildcard hosts in URL intent
|
||||
|
||||
## 1.2.9
|
||||
|
||||
### Fix
|
||||
|
||||
* release date
|
||||
* empty volume
|
||||
|
||||
## 1.2.8
|
||||
|
||||
### Fix
|
||||
|
||||
* Upload fate
|
||||
|
||||
## 1.2.7
|
||||
|
||||
### Fix
|
||||
|
||||
* proxy methode
|
||||
|
||||
## 1.2.6
|
||||
|
||||
### Refactor
|
||||
|
||||
* replace Gson with kotlinx.serialization
|
||||
|
||||
## 1.2.5
|
||||
|
||||
### Fix
|
||||
|
||||
* Volume default
|
||||
|
||||
## 1.2.4
|
||||
|
||||
### Fix
|
||||
|
||||
* seriesSlug being the wrong type
|
||||
|
||||
## 1.2.3
|
||||
|
||||
### Features
|
||||
|
||||
* Volume support
|
||||
* Fall back release date
|
||||
|
||||
## 1.2.2
|
||||
|
||||
### Features
|
||||
|
||||
* Migrate Guya proxy to Cubari
|
||||
|
||||
## 1.2.1
|
||||
|
||||
### Features
|
||||
|
||||
* first version
|
|
@ -13,7 +13,8 @@ Don't find the question you are look for go check out our general FAQs and Guide
|
|||
## FAQ
|
||||
|
||||
### Why do I see no manga?
|
||||
Cubari is a proxy for image gallery's.
|
||||
Cubari is a proxy for image galleries.
|
||||
If you've setup the Remote Storage via WebView the Recent tab shows your recent, unpinned entries, conversely the Popular tab shows your pinned entries.
|
||||
|
||||
### Where can I get more information about Cubari?
|
||||
You can visit the [Cubari](https://cubari.moe/) website for for more information.
|
||||
|
|
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'Cubari'
|
||||
pkgNameSuffix = "all.cubari"
|
||||
extClass = '.CubariFactory'
|
||||
extVersionCode = 21
|
||||
extVersionCode = 22
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -286,7 +286,7 @@ open class Cubari(override val lang: String) : HttpSource() {
|
|||
|
||||
// ------------- Helpers and whatnot ---------------
|
||||
|
||||
private val volumeNotSpecifiedTerms = setOf("Uncategorized", "null")
|
||||
private val volumeNotSpecifiedTerms = setOf("Uncategorized", "null", "")
|
||||
|
||||
private fun parseChapterList(payload: String, manga: SManga): List<SChapter> {
|
||||
val jsonObj = json.parseToJsonElement(payload).jsonObject
|
||||
|
@ -326,12 +326,10 @@ open class Cubari(override val lang: String) : HttpSource() {
|
|||
seriesPrefs.getLong(chapterNum, currentTimeMillis)
|
||||
}
|
||||
|
||||
name = if (volume != null) {
|
||||
// Output "Vol. 1 Ch. 1 - Chapter Name"
|
||||
"Vol. $volume Ch. $chapterNum - $title"
|
||||
} else {
|
||||
// Output "Ch. 1 - Chapter Name"
|
||||
"Ch. $chapterNum - $title"
|
||||
name = buildString {
|
||||
if (!volume.isNullOrBlank()) append("Vol.$volume ")
|
||||
append("Ch.$chapterNum")
|
||||
if (title.isNotBlank()) append(" - $title")
|
||||
}
|
||||
|
||||
url = if (chapterGroups[groupNum] is JsonArray) {
|
||||
|
|
Loading…
Reference in New Issue