Pornhub 视频一键下载 | pornhub.com

Pornhub 视频一键下载 | pornhub.com | 无需登录直接下载 | 可直接下载免费观看付费下载视频 | 可下载已禁止下载的视频 | 可下载所有可观看分辨率

< Feedback on Pornhub 视频一键下载 | pornhub.com

Review: Good - script works

§
Posted: 2020-12-22

返回结果格式变了,可以自己把关键部分代码改成如下即可继续使用:

        static getAllMp4(obj) {
            const result = [];
            if(obj.mediaDefinitions) {
              obj.mediaDefinitions.forEach(media => {
                if('mp4' === media.format) {
                  result.push({quality: media.quality, url: media.videoUrl})
                }
              })
            }
            return result;
        }
        // 获取下载地址信息,返回数组
        static getUrlInfo() {
            const flashvars = this.getObjectValueByStartsWithChar(unsafeWindow, 'flashvars_');
            if(!flashvars.length) {
                console.error('错误,未获取视频地址!', flashvars);
                return;
            }
            // const qualitys = this.getObjectValueByStartsWithChar(flashvars[0].value, 'quality_');
            const qualitys = this.getAllMp4(flashvars[0].value);
            return qualitys;
        }
§
Posted: 2020-12-27
老哥能说详细点吗,看不懂啊..
§
Posted: 2020-12-28
亲测有效
多谢多谢
好人一生平安
^-^
§
Posted: 2020-12-28
大佬请更新一下,谢谢
icm
§
Posted: 2020-12-29
并没有作用,是不是格式不对?
§
Posted: 2020-12-30
就是把源代码改一下,把源码里边的:
static getUrlInfo() {
const flashvars = this.getObjectValueByStartsWithChar(unsafeWindow, 'flashvars_');
if(!flashvars.length) {
console.error('错误,未获取视频地址!', flashvars);
return;
}
// const qualitys = this.getObjectValueByStartsWithChar(flashvars[0].value, 'quality_');
const qualitys = this.getAllMp4(flashvars[0].value);
return qualitys;
}


全部删掉,换成:


static getAllMp4(obj) {
const result = [];
if(obj.mediaDefinitions) {
obj.mediaDefinitions.forEach(media => {
if('mp4' === media.format) {
result.push({quality: media.quality, url: media.videoUrl})
}
})
}
return result;
}
// 获取下载地址信息,返回数组
static getUrlInfo() {
const flashvars = this.getObjectValueByStartsWithChar(unsafeWindow, 'flashvars_');
if(!flashvars.length) {
console.error('错误,未获取视频地址!', flashvars);
return;
}
// const qualitys = this.getObjectValueByStartsWithChar(flashvars[0].value, 'quality_');
const qualitys = this.getAllMp4(flashvars[0].value);
return qualitys;
}
§
Posted: 2020-12-30
换了也不行
icm
§
Posted: 2020-12-31
Edited: 2020-12-31
搞定,谢谢。
§
Posted: 2021-01-03
感谢老哥,有效了
§
Posted: 2021-01-03
谁能教教我,左换右换都不行
§
Posted: 2021-01-03
有尝请教我微信avav13168
§
Posted: 2021-01-07
今天后台有修改了,替换也不好用了
ekooooAuthor
§
Posted: 2021-01-11

感谢,有空我将更新上去

Post reply

Sign in to post a reply.