Random Gallery Added

Changed tag search behavior
Loading time improved for hitomi.la
Bug fixed
This commit is contained in:
tom5079
2020-06-14 16:53:30 +09:00
parent b3feee6d9d
commit 49ba579a59
19 changed files with 90 additions and 37 deletions

View File

@@ -16,7 +16,7 @@
package xyz.quaver.hitomi
import kotlinx.serialization.json.Json
import xyz.quaver.json
import xyz.quaver.proxy
import java.net.URL
@@ -24,7 +24,7 @@ const val protocol = "https:"
@Suppress("EXPERIMENTAL_API_USAGE")
fun getGalleryInfo(galleryID: Int) =
Json.nonstrict.parse(
json.parse(
GalleryInfo.serializer(),
URL("$protocol//$domain/galleries/$galleryID.js").openConnection(proxy).getInputStream().use {
it.reader().readText()