From 0a5c7513a79eea665977bda6f9fb24fa62a3bc0c Mon Sep 17 00:00:00 2001 From: stevenyomi <95685115+stevenyomi@users.noreply.github.com> Date: Tue, 13 Dec 2022 11:43:34 +0800 Subject: [PATCH] BoyLove: fix error on empty result (#14526) --- src/zh/boylove/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/zh/boylove/BoyLoveDto.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zh/boylove/build.gradle b/src/zh/boylove/build.gradle index 363254fdb..ca813f40e 100644 --- a/src/zh/boylove/build.gradle +++ b/src/zh/boylove/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'BoyLove' pkgNameSuffix = 'zh.boylove' extClass = '.BoyLove' - extVersionCode = 7 + extVersionCode = 8 isNsfw = true } diff --git a/src/zh/boylove/src/eu/kanade/tachiyomi/extension/zh/boylove/BoyLoveDto.kt b/src/zh/boylove/src/eu/kanade/tachiyomi/extension/zh/boylove/BoyLoveDto.kt index 272dc1700..d36203a3e 100644 --- a/src/zh/boylove/src/eu/kanade/tachiyomi/extension/zh/boylove/BoyLoveDto.kt +++ b/src/zh/boylove/src/eu/kanade/tachiyomi/extension/zh/boylove/BoyLoveDto.kt @@ -66,7 +66,7 @@ class ChapterDto( private val dateFormat by lazy { SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.ENGLISH) } @Serializable -class ListPageDto(val lastPage: Boolean, val list: List) +class ListPageDto(val lastPage: Boolean, val list: List = emptyList()) @Serializable class ResultDto(val result: T)