找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4913|回复: 26

[iptv信源 资源分享或寻求] 不舍得花钱之PPTV

[复制链接]
发表于 2021-4-26 00:49 | 显示全部楼层 |阅读模式
  1. <?php
  2.     // 老爷保号 32429123 https://v.pptv.com/show/Q9WeHYXrW5n8euI.html
  3.     $id = $_GET['id'];
  4.     $bstrURL = 'https://web-play.pptv.com/webplay3-0-'.$id.'.xml?o=0&version=6&type=mhpptv&appid=pptv.web.h5&appplt=web&appver=4.1.16&cb=a';
  5.     $ch = curl_init();
  6.     curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false);
  7.     curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
  8.     curl_setopt($ch,CURLOPT_URL,$bstrURL);
  9.     curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
  10.     $data = curl_exec($ch);
  11.     curl_close($ch);
  12.     $data = substr($data,2,strlen($data)-6);
  13.     $json = json_decode($data);
  14.    
  15.     // 获取文件名 并且获取数组成员数以定位播放列表长度
  16.     $dwLen = count($json->childNodes[2]->childNodes[0]->childNodes);
  17.     $szFileName = $json->childNodes[2]->childNodes[0]->childNodes[$dwLen-1]->rid;
  18.     $szFileName = str_replace('.mp4','.m3u8',$szFileName); // 嘘!
  19.     $p = ($dwLen-1)*2+5; // 粗暴定位,根据会员片,其它普通片源酌情处理,好像是一个偏移?
  20.     $szHost = $json->childNodes[$p]->childNodes[0]->childNodes[0];
  21.     // 获取一条屁股
  22.     $k = urldecode($json->childNodes[$p]->childNodes[5]->childNodes[0]);
  23.     $k = str_replace('&bppcataid=1','',$k);

  24.     $url = 'https://'.$szHost.'/'.$szFileName.'?h5vod.ver=2.1.4&k='.$k.'&type=mhpptv&sv=4.1.16';
  25.     header('location:'.$url);

  26. ?>
复制代码


这论坛改的我有点陌生 ? 这个阅读权限也是个迷一样?(或许是我不会用?)   

电影看完,代码送你们了

评分

参与人数 7恩山币 +10 收起 理由
艸牛 + 2 这个很厉害呀,研究下如何抓id
silverchs + 2 一看就是觉得高端、大气、上档次!
rt-wifi + 1 这个年轻人不讲武德,耗子尾汁!
oreolee2020 + 1 这个是干什么用的?就一个电影?
cs8880 + 2 强大的恩山!(以下重复1万次)
kof97zip + 1 别光喝酒啊,吃菜吃菜~~~
zlbpolly + 1 几亿网民,我们俩竟然神奇的在恩山相遇了!来,1分也是分!

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2021-4-26 01:30 | 显示全部楼层
姥爷保号
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-26 05:18 | 显示全部楼层
楼主老兄,我是潮南区的。胶己人,你是地子
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-26 07:07 | 显示全部楼层
看完电影的后半夜大神,谢谢啦
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-26 07:47 | 显示全部楼层
看看怎么样
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-26 07:52 | 显示全部楼层
恩山有你更精彩
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-26 08:54 | 显示全部楼层
大神 怎么知道id啊?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-26 09:21 | 显示全部楼层
825567468 发表于 2021-4-26 08:54
大神 怎么知道id啊?

电影列表页源代码…
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-26 09:21 | 显示全部楼层
w大神  膜拜 , 怎么知道id啊?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-26 09:45 | 显示全部楼层
多谢分享,准备收藏一下,谢谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-26 09:53 | 显示全部楼层
能有大神指点下这种源码怎样使用吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-26 10:21 | 显示全部楼层
大神的又一神作,不顶不行啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-26 10:33 | 显示全部楼层
老大有空把那个我发你的帮忙解决一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-26 10:48 | 显示全部楼层
谢谢,感谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-4-26 13:01 | 显示全部楼层
阔以那确实就是
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 22:02

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表