找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1708|回复: 6

[iptv信源 资源分享或寻求] 免费看 8TV PHP

[复制链接]
发表于 2022-9-10 09:59 | 显示全部楼层 |阅读模式
本帖最后由 aa147258 于 2022-9-10 10:02 编辑

[color=var(--color-prettylights-syntax-entity-tag)]<?php
$ url = "[color=var(--color-prettylights-syntax-string)] https://www.dailymotion.com/play ... v&referer=& ";
$ curl = curl_init( $ url );
curl_setopt( $ curl , [color=var(--color-prettylights-syntax-constant)]CURLOPT_URL , $ url );
curl_setopt( $ curl , [color=var(--color-prettylights-syntax-constant)]CURLOPT_RETURNTRANSFER , [color=var(--color-prettylights-syntax-constant)]true );
$标头=[color=var(--color-prettylights-syntax-entity)]数组(
   "[color=var(--color-prettylights-syntax-string)]推荐人:https://www.xtra.com.my/live-tv ",
   " [color=var(--color-prettylights-syntax-string)]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36 ",
);
curl_setopt( $ curl , [color=var(--color-prettylights-syntax-constant)]CURLOPT_HTTPHEADER , $ headers );
[color=var(--color-prettylights-syntax-comment)]//仅用于调试!
curl_setopt( $ curl , [color=var(--color-prettylights-syntax-constant)]CURLOPT_SSL_VERIFYHOST , [color=var(--color-prettylights-syntax-constant)]false );
curl_setopt($ curl,[color=var(--color-prettylights-syntax-constant)]CURLOPT_SSL_VERIFYPEER,[color=var(--color-prettylights-syntax-constant)]假);
$ resp = curl_exec( $ curl );
curl_close($卷曲);
preg_match( [color=var(--color-prettylights-syntax-string)]'/qualities"{.+?}),"/' , $ resp , $ matches );
$ arr = json_decode( $匹配[[color=var(--color-prettylights-syntax-constant)] 1 ],[color=var(--color-prettylights-syntax-constant)] true );
    $ m3u8_raw = $ arr [[color=var(--color-prettylights-syntax-string)] 'auto' ][[color=var(--color-prettylights-syntax-constant)] 0 ][[color=var(--color-prettylights-syntax-string)] 'url' ];
标头(“[color=var(--color-prettylights-syntax-string)]位置: ”。$ m3u8_raw);
[color=var(--color-prettylights-syntax-entity-tag)]?>



评分

参与人数 1恩山币 -1 收起 理由
bn12bn123 -1 这不是我们丢出去垃圾吗你捡来了,其他几个.

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-9-10 10:27 | 显示全部楼层
本帖最后由 jiteloozz 于 2022-9-10 11:00 编辑

代码翻译大致如下:

<?php
$url = "https://www.dailymotion.com/player/metadata/video/kdFzSYy1bHxrForBrar?embedder=https%3A%2F%2Fwww.xtra.com.my%2Flive-tv&referer=&";     //
$curl = curl_init( $ url );
curl_setopt( $curl , CURLOPT_URL , $url );
curl_setopt( $curl , CURLOPT_RETURNTRANSFER , true );
$headers=array(
   "Referer:https://www.xtra.com.my/live-tv ",
   "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36 ",
);
curl_setopt( $curl , CURLOPT_HTTPHEADER , $headers );
//仅用于调试!
curl_setopt( $curl , CURLOPT_SSL_VERIFYHOST , false );
curl_setopt( $curl,CURLOPT_SSL_VERIFYPEER,false );
$resp = curl_exec( $curl );
curl_close($curl);
preg_match( '/qualities"{.+?}),"/' , $ resp , $matches );
$arr = json_decode( $matches[ 1 ], true );
$m3u8_raw = $arr [ 'auto' ][ 0 ][ 'url' ];
header( 'Location:' . $m3u8_raw);
?>

点评

第4项错了  详情 回复 发表于 2022-9-10 20:09
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-10 15:55 | 显示全部楼层
感谢分享,感谢翻译
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-10 20:09 | 显示全部楼层
jiteloozz 发表于 2022-9-10 10:27
代码翻译大致如下:

第4项错了  
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-11 06:57 | 显示全部楼层
错了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-11 14:02 | 显示全部楼层
本帖最后由 tugar 于 2022-9-11 14:03 编辑
是一些字符的问题,比如空格,比如全角逗号和分号,改一下就好了,能不能用没测试。
  1. <?php
  2. $url = "https://www.dailymotion.com/player/metadata/video/kdFzSYy1bHxrForBrar?embedder=https%3A%2F%2Fwww.xtra.com.my%2Flive-tv&referer=&";     //
  3. $curl = curl_init( $url );
  4. curl_setopt( $curl , CURLOPT_URL , $url );
  5. curl_setopt( $curl , CURLOPT_RETURNTRANSFER , true );
  6. $headers=array(
  7.     "Referer:https://www.xtra.com.my/live-tv ",
  8.     "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36 ",
  9. );
  10. curl_setopt( $curl , CURLOPT_HTTPHEADER , $headers );
  11. //仅用于调试!
  12. curl_setopt( $curl , CURLOPT_SSL_VERIFYHOST , false );
  13. curl_setopt( $curl,CURLOPT_SSL_VERIFYPEER,false );
  14. $resp = curl_exec( $curl );
  15. curl_close($curl);
  16. preg_match( '/qualities"(.+?),"/' , $resp , $matches );
  17. $arr = json_decode( $matches[ 1 ], true );
  18. $m3u8_raw = $arr [ 'auto' ][ 0 ][ 'url' ];
  19. header( 'Location:'.$m3u8_raw);
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-9-12 08:00 | 显示全部楼层
我没有隐藏没有骗人,最主要能用就行了我知道是你写的咋样?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-16 17:04

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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