Fix parse e-hentai failed

This commit is contained in:
tarsin committed 2023-06-20 22:18:19 +08:00
1 parent a06e76e934
commit a27e8b99d9
1 file changed
+2 -2
@@ -321,7 +321,7 @@ object GalleryListParser {
val list = result.galleryInfoList
list.addAll(
es.mapNotNull {
parseGalleryInfo(it.toString())?.apply {
runCatching { parseGalleryInfo(it.toString()) }.onFailure { it.printStackTrace() }.getOrNull()?.apply {
if (favoriteSlot == -2 && EhDB.containLocalFavorites(gid)) {
favoriteSlot = -1
favoriteName = appCtx.getString(R.string.local_favorites)
@@ -353,4 +353,4 @@ object GalleryListParser {
}
}
private external fun parseGalleryInfo(e: String): GalleryInfo?
private external fun parseGalleryInfo(e: String): GalleryInfo