From 132b3b9be1b49d4fb0eab2819464554bbb7e1336 Mon Sep 17 00:00:00 2001 From: tom5079 Date: Wed, 29 Jul 2020 10:53:50 +0900 Subject: [PATCH] Unable to fetch thumbnails fixed --- app/build.gradle | 4 ++-- app/release/output.json | 4 ++-- libpupil/src/main/java/xyz/quaver/hitomi/galleryblock.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index fab88b2d..14c9b64b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -19,8 +19,8 @@ android { applicationId "xyz.quaver.pupil" minSdkVersion 16 targetSdkVersion 29 - versionCode 56 - versionName "4.18.4" + versionCode 57 + versionName "4.19" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true vectorDrawables.useSupportLibrary = true diff --git a/app/release/output.json b/app/release/output.json index c2663150..5ed5f0b4 100644 --- a/app/release/output.json +++ b/app/release/output.json @@ -11,8 +11,8 @@ "type": "SINGLE", "filters": [], "properties": [], - "versionCode": 56, - "versionName": "56", + "versionCode": 57, + "versionName": "57", "enabled": true, "outputFile": "app-release.apk" } diff --git a/libpupil/src/main/java/xyz/quaver/hitomi/galleryblock.kt b/libpupil/src/main/java/xyz/quaver/hitomi/galleryblock.kt index 6040251d..b783588c 100644 --- a/libpupil/src/main/java/xyz/quaver/hitomi/galleryblock.kt +++ b/libpupil/src/main/java/xyz/quaver/hitomi/galleryblock.kt @@ -83,7 +83,7 @@ fun getGalleryBlock(galleryID: Int) : GalleryBlock? { val galleryUrl = doc.selectFirst(".lillie").attr("href") - val thumbnails = doc.select("img").map { protocol + it.attr("data-src") } + val thumbnails = doc.select(".dj-img-cont img").map { protocol + it.attr("src") } val title = doc.selectFirst("h1.lillie > a").text() val artists = doc.select("div.artist-list a").map{ it.text() }