deleted hiyobi support
This commit is contained in:
@@ -13,6 +13,12 @@ const val hiyobi = "xn--9w3b15m8vo.asia"
|
||||
const val user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"
|
||||
|
||||
var cookie: String = ""
|
||||
get() {
|
||||
if (field.isEmpty())
|
||||
field = renewCookie()
|
||||
|
||||
return field
|
||||
}
|
||||
|
||||
fun renewCookie() : String {
|
||||
val url = "https://$hiyobi/"
|
||||
@@ -32,9 +38,6 @@ fun renewCookie() : String {
|
||||
fun getReader(galleryId: Int) : Reader {
|
||||
val url = "https://$hiyobi/data/json/${galleryId}_list.json"
|
||||
|
||||
if (cookie.isEmpty())
|
||||
cookie = renewCookie()
|
||||
|
||||
try {
|
||||
val json = Json(JsonConfiguration.Stable).parseJson(
|
||||
with(URL(url).openConnection() as HttpsURLConnection) {
|
||||
|
||||
Reference in New Issue
Block a user