From d99a0350770aed7f926410990db7cd937a3d7b04 Mon Sep 17 00:00:00 2001 From: jade Date: Thu, 23 May 2024 17:46:34 +0800 Subject: [PATCH] =?UTF-8?q?*=20=E8=A7=A3=E5=86=B3Mp4=E7=94=B5=E5=BD=B1?= =?UTF-8?q?=E7=BD=91=E9=A6=96=E9=A1=B5=E5=9B=BE=E7=89=87=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/mp4movie.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/js/mp4movie.js b/js/mp4movie.js index 189dc11c..11e82158 100644 --- a/js/mp4movie.js +++ b/js/mp4movie.js @@ -20,6 +20,19 @@ class DyttSpider extends Spider { this.dyttReconnectTimes = 0 } + async spiderInit(inReq=null) { + if (inReq !== null){ + this.jsBase = await js2Proxy(inReq,"detail",this.getHeader()); + }else{ + this.jsBase = await js2Proxy(true, this.siteType, this.siteKey, 'detail/', this.getHeader()); + } + + } + + async init(cfg) { + await super.init(cfg); + await this.spiderInit(null) + } getName() { return "🍚┃Mp4电影┃🍚" @@ -91,7 +104,7 @@ class DyttSpider extends Spider { let vodShort = new VodShort(); vodShort.vod_name = vodElement.attribs.title vodShort.vod_id = vodElement.attribs.href - vodShort.vod_pic = this.detailProxy + Utils.base64Encode(vodShort.vod_id) + vodShort.vod_pic = this.jsBase + Utils.base64Encode(vodShort.vod_id) vod_list.push(vodShort) } return vod_list