Tweak volume/chapter formatting for Boredom Society (fixes latest chapter number) (#748)

Tweak volume/chapter formatting for Boredom Society
This commit is contained in:
Eugene 2019-01-28 20:26:28 -05:00 committed by Carlos
parent 1a0e173779
commit c86da1b3aa
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Boredom Society'
pkgNameSuffix = 'en.boredomsociety'
extClass = '.BoredomSociety'
extVersionCode = 2
extVersionCode = 3
libVersion = '1.2'
}

View File

@ -96,10 +96,10 @@ class BoredomSociety : ParsedHttpSource() {
if (!jsonElement["chapter_name"].string.startsWith("Chapter", true)) {
if (jsonElement["chapter_volume"].string?.isNotBlank()) {
chapterName.add("Vol: " + jsonElement["chapter_volume"].string)
chapterName.add("Vol. " + jsonElement["chapter_volume"].string)
}
if (jsonElement["chapter_number"].string?.isNotBlank()) {
chapterName.add("Ch: " + jsonElement["chapter_number"].string + " - ")
chapterName.add("Ch. " + jsonElement["chapter_number"].string + " - ")
}
}
chapterName.add(jsonElement["chapter_name"].string)