找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 11270|回复: 154

[iptv信源 资源分享或寻求] tianma系列几个电视台代理

 火.. [复制链接]
发表于 2022-7-12 09:56 | 显示全部楼层 |阅读模式
本帖最后由 guoma 于 2022-7-14 17:46 编辑

tianma系列中信阳台、湛江台加referer验证了,贵阳台、巴彦淖尔台未加验证但需要代理,其他台有静态线路。
感谢坛友EScZkc_1d8提供湛江台接口!据此,对代码稍作更改。
  1. <?php
  2. $d = isset($_GET['d'])?$_GET['d']:'xy';//信阳:xy;湛江:zj;巴彦淖尔:by;
  3. $id = isset($_GET['id'])?$_GET['id']:'xyzh';
  4. //调用:tianma.php?d={}&id={};
  5. $n = [
  6.     //信阳台
  7.     'xyzh' => 11,//信阳新闻综合
  8.     'xygg' => 12,//信阳公共
  9.     'xysh' => 14,//信阳浉河
  10.     'xypq' => 16,//信阳平桥
  11.     //湛江台
  12.     'zjzh' => 13,//湛江综合
  13.     'zjgg' => 14,//湛江公共
  14.     //巴彦淖尔台
  15.     'byzh' => 11,//巴彦淖尔新闻综合
  16.     'byjj' => 12,//巴彦淖尔经济生活
  17.     'byys' => 13,//巴彦淖尔影视娱乐
  18.     ];
  19. if($d=='xy') {
  20.     $url = 'http://xyrm.tianma3600.com/tvradio/Tvfront/getTvInfo?tv_id='.$n[$id];
  21.     $m3u8 = json_decode(file_get_contents($url)) -> data -> m3u8;
  22.     $r = $url;
  23.     $playurl = trim(preg_replace('/https/','http',strstr(getdata($m3u8,$r),'https')));
  24. }
  25. if($d=='zj'){
  26.     $url = 'https://zjsty.tianma3600.com/tvradio/Tvfront/getTvInfo?tv_id='.$n[$id];
  27.     $r = $url;
  28.     $m3u8 = json_decode(getdata($url,$r)) -> data -> m3u8;
  29.     $playurl = trim(preg_replace('/https/','http',strstr(getdata($m3u8,$r),'https')));
  30. }
  31. if($d=='by') {
  32.     $url = 'http://bynr.tianma3600.com/tvradio/Tvfront/getTvInfo?tv_id='.$n[$id];
  33.     $playurl = json_decode(file_get_contents($url)) -> data -> m3u8;
  34. }
  35.     header('Location:'.$playurl);
  36.     //echo $playurl;
  37. function getdata($url,$ref){
  38.     $h = ["User-Agent: Mozilla/5.0 (Windows NT 6.1)",];            
  39.     $ch = curl_init($url);
  40.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  41.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  42.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  43.     curl_setopt($ch, CURLOPT_HTTPHEADER, $h);
  44.     curl_setopt($ch, CURLOPT_REFERER, $ref);
  45.     $res = curl_exec($ch);
  46.     curl_close($ch);
  47.     return $res;
  48. }
  49. ?>
复制代码


我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-7-12 09:57 | 显示全部楼层
tianma系列几个电视台代理 [修改]
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-12 10:04 | 显示全部楼层
感谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-12 10:04 | 显示全部楼层
但是发声方法
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-12 10:09 | 显示全部楼层
看看有哪些。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-12 10:11 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-12 10:11 | 显示全部楼层
看看啊 谢谢了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-12 10:16 | 显示全部楼层
tianma系列几个电视台代理
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-12 10:20 | 显示全部楼层
感谢111
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-12 10:20 | 显示全部楼层
谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-12 10:22 来自手机 | 显示全部楼层
看看.看看.....
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

使用道具 举报

发表于 2022-7-12 10:32 | 显示全部楼层
谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-12 10:33 | 显示全部楼层
感谢分享................
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-12 10:35 | 显示全部楼层
湛江台加re
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-28 23:38

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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