diff --git a/src/en/boredsociety/build.gradle b/src/en/boredsociety/build.gradle index 8601ef8ef..fbc41eb36 100644 --- a/src/en/boredsociety/build.gradle +++ b/src/en/boredsociety/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Boredom Society' pkgNameSuffix = 'en.boredomsociety' extClass = '.BoredomSociety' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' } diff --git a/src/en/boredsociety/res/mipmap-hdpi/ic_launcher.png b/src/en/boredsociety/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..d7eba19de Binary files /dev/null and b/src/en/boredsociety/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/en/boredsociety/res/mipmap-mdpi/ic_launcher.png b/src/en/boredsociety/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..cf58785cc Binary files /dev/null and b/src/en/boredsociety/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/en/boredsociety/res/mipmap-xhdpi/ic_launcher.png b/src/en/boredsociety/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..b613d31f2 Binary files /dev/null and b/src/en/boredsociety/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/en/boredsociety/res/mipmap-xxhdpi/ic_launcher.png b/src/en/boredsociety/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..56e1be952 Binary files /dev/null and b/src/en/boredsociety/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/en/boredsociety/res/mipmap-xxxhdpi/ic_launcher.png b/src/en/boredsociety/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..a2f996ea5 Binary files /dev/null and b/src/en/boredsociety/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/en/boredsociety/res/web_hi_res_512.png b/src/en/boredsociety/res/web_hi_res_512.png new file mode 100644 index 000000000..7baddaf07 Binary files /dev/null and b/src/en/boredsociety/res/web_hi_res_512.png differ diff --git a/src/en/boredsociety/src/eu/kanade/tachiyomi/extension/en/boredomsociety/BoredomSociety.kt b/src/en/boredsociety/src/eu/kanade/tachiyomi/extension/en/boredomsociety/BoredomSociety.kt index ab7957680..9cf4125d1 100644 --- a/src/en/boredsociety/src/eu/kanade/tachiyomi/extension/en/boredomsociety/BoredomSociety.kt +++ b/src/en/boredsociety/src/eu/kanade/tachiyomi/extension/en/boredomsociety/BoredomSociety.kt @@ -63,7 +63,7 @@ class BoredomSociety : ParsedHttpSource() { override fun latestUpdatesParse(response: Response): MangasPage { val jsonArray = getJsonArray(response) - val sortedJson = jsonArray.sortedBy { it["last_updated"].long } + val sortedJson = jsonArray.sortedBy { it["last_updated"].long }.asReversed() val list = parseData(sortedJson) return MangasPage(list, false) } @@ -74,7 +74,7 @@ class BoredomSociety : ParsedHttpSource() { } private fun parseData(jsonArray: List<JsonElement>): List<SManga> { - var mutableList = mutableListOf<SManga>() + val mutableList = mutableListOf<SManga>() jsonArray.forEach { json -> val manga = SManga.create() manga.url = MANGA_URL + json["id"].string @@ -92,7 +92,6 @@ class BoredomSociety : ParsedHttpSource() { private fun parseChapter(jsonElement: JsonElement): SChapter { val sChapter = SChapter.create() sChapter.url = CHAPTER_URL + jsonElement["id"].string - sChapter.date_upload = jsonElement["creation_timestamp"].long * 1000 val chapterName = mutableListOf<String>() if (!jsonElement["chapter_name"].string.startsWith("Chapter", true)) { @@ -105,6 +104,7 @@ class BoredomSociety : ParsedHttpSource() { } chapterName.add(jsonElement["chapter_name"].string) sChapter.name = cleanString(chapterName.joinToString(" ")) + sChapter.date_upload = jsonElement["creation_timestamp"].long * 1000 return sChapter } @@ -148,6 +148,7 @@ class BoredomSociety : ParsedHttpSource() { json["chapters"].asJsonArray.forEach { it -> mutableChapters.add(parseChapter(it)) } + mutableChapters.reverse() return mutableChapters }