Skip to content

Commit

Permalink
feat: ng
Browse files Browse the repository at this point in the history
  • Loading branch information
Greatwallcorner committed Jul 21, 2024
1 parent af055bc commit aa61b0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/github/catvod/spider/NG.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ 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
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"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit aa61b0b

Please sign in to comment.