From aa61b0bbc5c73dc1503ef48fa52420d6a5abe5a5 Mon Sep 17 00:00:00 2001 From: Corner Date: Sun, 21 Jul 2024 18:56:00 +0800 Subject: [PATCH] feat: ng --- src/main/java/com/github/catvod/spider/NG.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/catvod/spider/NG.kt b/src/main/java/com/github/catvod/spider/NG.kt index 374ee87..69ac80b 100644 --- a/src/main/java/com/github/catvod/spider/NG.kt +++ b/src/main/java/com/github/catvod/spider/NG.kt @@ -12,6 +12,7 @@ import com.github.catvod.crawler.SpiderDebug import com.github.catvod.net.OkHttp import com.github.catvod.utils.Json import com.github.catvod.utils.ProxyVideo +import com.github.catvod.utils.Utils import com.google.common.net.HttpHeaders import com.google.gson.JsonParser import com.google.gson.annotations.SerializedName @@ -19,7 +20,7 @@ import com.google.gson.reflect.TypeToken class NG: Spider() { - private var COMMON_URL: String = "http://ys.changmengyun.com" + private var COMMON_URL: String = Utils.base64Decode("aHR0cDovL3lzLmNoYW5nbWVuZ3l1bi5jb20=") private val FIND_VIDEO_VOD_LIST: String = "/api.php/provide/vod_list" private val FIND_CLASSIFICATION: String = "/api.php/provide/home_nav" private val VIDEO_DETAIL: String = "/api.php/provide/vod_detail" @@ -51,7 +52,7 @@ class NG: Spider() { headers.put("timeMillis", currentTimeMillis.toString()) headers.put( "sign", - DigestUtil.md5Hex("#uBFszdEM0oL0JRn@$currentTimeMillis") + DigestUtil.md5Hex(Utils.base64Decode("I3VCRnN6ZEVNMG9MMEpSbkA=")+"$currentTimeMillis") ) return headers }