Skip to content

Commit

Permalink
* 解决Mp4电影网首页图片无法加载的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jadehh committed May 23, 2024
1 parent 9efb96d commit d99a035
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion js/mp4movie.js
Original file line number Diff line number Diff line change
Expand Up @@ -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电影┃🍚"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d99a035

Please sign in to comment.